diff options
-rw-r--r-- | test/HTML5/Parser/DOMTreeBuilderTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/HTML5/Parser/DOMTreeBuilderTest.php b/test/HTML5/Parser/DOMTreeBuilderTest.php index de7c54c..677bac6 100644 --- a/test/HTML5/Parser/DOMTreeBuilderTest.php +++ b/test/HTML5/Parser/DOMTreeBuilderTest.php @@ -129,7 +129,13 @@ class DOMTreeBuilderTest extends \HTML5\Tests\TestCase { } public function testParseErrors() { - $this->markTestIncomplete("Incomplete."); + $html = "<!DOCTYPE html><html><mathml><![CDATA[test"; + $doc = $this->parse($html); + + // We're JUST testing that we can access errors. Actual testing of + // error messages happen in the Tokenizer's tests. + $this->assertGreaterThan(0, count($doc->errors)); + $this->assertTrue(is_string($doc->errors[0])); } public function testProcessingInstruction() { |