You are here

public function StringInputStreamTest::testKey in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/test/HTML5/Parser/StringInputStreamTest.php \Masterminds\HTML5\Tests\Parser\StringInputStreamTest::testKey()

File

vendor/masterminds/html5/test/HTML5/Parser/StringInputStreamTest.php, line 29

Class

StringInputStreamTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testKey() {
  $s = new StringInputStream("abc");
  $this
    ->assertEquals(0, $s
    ->key());
  $s
    ->next();
  $this
    ->assertEquals(1, $s
    ->key());
}