You are here

public function TokenizerTest::testParse 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::testParse()

File

vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php, line 67

Class

TokenizerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testParse() {
  list($tok, $events) = $this
    ->createTokenizer('');
  $tok
    ->parse();
  $e1 = $events
    ->get(0);
  $this
    ->assertEquals(1, $events
    ->Depth());
  $this
    ->assertEquals('eof', $e1['name']);
}