protected function TokenizerTest::createTokenizer in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php \Masterminds\HTML5\Tests\Parser\TokenizerTest::createTokenizer()
4 calls to TokenizerTest::createTokenizer()
- TokenizerTest::parse in vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php - TokenizerTest::testParse in vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php - TokenizerTest::testRcdata in vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php - TokenizerTest::testWhitespace in vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php, line 949
Class
Namespace
Masterminds\HTML5\Tests\ParserCode
protected function createTokenizer($string, $debug = false) {
$eventHandler = new EventStack();
$stream = new StringInputStream($string);
$scanner = new Scanner($stream);
$scanner->debug = $debug;
return array(
new Tokenizer($scanner, $eventHandler),
$eventHandler,
);
}