diff options
Diffstat (limited to 'test/HTML5')
-rw-r--r-- | test/HTML5/Parser/EventStack.php | 6 | ||||
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/HTML5/Parser/EventStack.php b/test/HTML5/Parser/EventStack.php index 9754334..68f0aa9 100644 --- a/test/HTML5/Parser/EventStack.php +++ b/test/HTML5/Parser/EventStack.php @@ -61,5 +61,11 @@ class EventStack implements EventHandler { $this->store('eof'); } + public function parseError($msg, $line, $col) { + throw new EventStackParseError(sprintf("%s (line %d, col %d)", $msg, $line, $col)); + } + } +class EventStackParseError extends \Exception { +} diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index 9b1727f..b6ce01f 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -76,7 +76,7 @@ class TokenizerTest extends \HTML5\Tests\TestCase { } /** - * @expectedException \HTML5\Parser\ParseError + * @expectedException \HTML5\Parser\EventStackParseError */ public function testBrokenCharacterReference() { // Test with broken charref |