diff options
author | Technosophos <[email protected]> | 2013-04-02 16:44:02 -0500 |
---|---|---|
committer | Technosophos <[email protected]> | 2013-04-02 16:44:02 -0500 |
commit | 8a5d21165697440ae80756d9b8acf56dd682d0fc (patch) | |
tree | 27305660f874c168308418fe3a7d6bf0c3aa3de6 /test/HTML5/ParserTest.php | |
parent | 91d1684acf50e0f6b58c877765ab9863e650a33a (diff) |
Initial add of html5lib.
Diffstat (limited to 'test/HTML5/ParserTest.php')
-rw-r--r-- | test/HTML5/ParserTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/HTML5/ParserTest.php b/test/HTML5/ParserTest.php new file mode 100644 index 0000000..43b87e9 --- /dev/null +++ b/test/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'); + } +} |