public function Html5Test::testUnescaped in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Masterminds\HTML5\TestsCode
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);
}