public function FileInputStreamTest::testCharsWhile 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::testCharsWhile()
File
- vendor/masterminds/ html5/ test/ HTML5/ Parser/ FileInputStreamTest.php, line 186 
Class
Namespace
Masterminds\HTML5\Tests\ParserCode
public function testCharsWhile() {
  $s = new FileInputStream(__DIR__ . '/FileInputStreamTest.html');
  $this
    ->assertEquals('<!', $s
    ->charsWhile('!<'));
  $this
    ->assertEquals('', $s
    ->charsWhile('>'));
  $this
    ->assertEquals('doctype', $s
    ->charsWhile('odcyept'));
  $this
    ->assertEquals(' htm', $s
    ->charsWhile('html ', 4));
}