public function FileInputStreamTest::testRemainingChars in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Parser/FileInputStreamTest.php \Masterminds\HTML5\Tests\Parser\FileInputStreamTest::testRemainingChars()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ FileInputStreamTest.php, line 138
Class
Namespace
Masterminds\HTML5\Tests\ParserCode
public function testRemainingChars() {
$text = file_get_contents(__DIR__ . '/FileInputStreamTest.html');
$s = new FileInputStream(__DIR__ . '/FileInputStreamTest.html');
$this
->assertEquals($text, $s
->remainingChars());
$text = substr(file_get_contents(__DIR__ . '/FileInputStreamTest.html'), 1);
$s = new FileInputStream(__DIR__ . '/FileInputStreamTest.html');
$s
->next();
// Pop one.
$this
->assertEquals($text, $s
->remainingChars());
}