diff options
Diffstat (limited to 'test/SimpleTest/HTML5')
-rw-r--r-- | test/SimpleTest/HTML5/ParserTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SimpleTest/HTML5/ParserTest.php b/test/SimpleTest/HTML5/ParserTest.php new file mode 100644 index 0000000..43b87e9 --- /dev/null +++ b/test/SimpleTest/HTML5/ParserTest.php @@ -0,0 +1,15 @@ +<?php + +require_once dirname(__FILE__) . '/../autorun.php'; + +class HTML5_ParserTest extends UnitTestCase +{ + public function testParse() { + $result = HTML5_Parser::parse('<html><body></body></html>'); + $this->assertIsA($result, 'DOMDocument'); + } + public function testParseFragment() { + $result = HTML5_Parser::parseFragment('<b>asdf</b> foo'); + $this->assertIsA($result, 'DOMNodeList'); + } +} |