You are here

public function Html5Test::testUnescaped in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::testUnescaped()

File

vendor/masterminds/html5/test/HTML5/Html5Test.php, line 357

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

public function testUnescaped() {
  $res = $this
    ->cycle('<script>2 < 1</script>');
  $this
    ->assertRegExp('|2 < 1|', $res);
  $res = $this
    ->cycle('<style>div>div>div</style>');
  $this
    ->assertRegExp('|div>div>div|', $res);
  $res = $this
    ->cycleFragment('<script>2 < 1</script>');
  $this
    ->assertRegExp('|2 < 1|', $res);
  $res = $this
    ->cycleFragment('<style>div>div>div</style>');
  $this
    ->assertRegExp('|div>div>div|', $res);
}