You are here

protected function TokenizerTest::createTokenizer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

TokenizerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

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,
  );
}