public function TokenizerTest::testRcdata in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php \Masterminds\HTML5\Tests\Parser\TokenizerTest::testRcdata()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php, line 895
Class
Namespace
Masterminds\HTML5\Tests\ParserCode
public function testRcdata() {
list($tok, $events) = $this
->createTokenizer('<title>'<!-- not a comment --></TITLE>');
$tok
->setTextMode(\Masterminds\HTML5\Elements::TEXT_RCDATA, 'title');
$tok
->parse();
$this
->assertEventEquals('text', "'<!-- not a comment -->", $events
->get(1));
}