You are here

public function StringInputStreamTest::invalidParseErrorTestHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Parser/StringInputStreamTest.php \Masterminds\HTML5\Tests\Parser\StringInputStreamTest::invalidParseErrorTestHandler()
1 call to StringInputStreamTest::invalidParseErrorTestHandler()
StringInputStreamTest::testInvalidParseError in vendor/masterminds/html5/test/HTML5/Parser/StringInputStreamTest.php

File

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

Class

StringInputStreamTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function invalidParseErrorTestHandler($input, $numErrors, $name) {
  $stream = new StringInputStream($input, 'UTF-8');
  $this
    ->assertEquals($input, $stream
    ->remainingChars(), $name . ' (stream content)');
  $this
    ->assertEquals($numErrors, count($stream->errors), $name . ' (number of errors)');
}