public function ScannerTest::testPeek in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/test/HTML5/Parser/ScannerTest.php \Masterminds\HTML5\Tests\Parser\ScannerTest::testPeek()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ ScannerTest.php, line 43 - Test the Scanner. This requires the InputStream tests are all good.
Class
Namespace
Masterminds\HTML5\Tests\ParserCode
public function testPeek() {
$s = new Scanner(new StringInputStream("abc"));
$this
->assertEquals('b', $s
->peek());
$s
->next();
$this
->assertEquals('c', $s
->peek());
}