Source of file ParserTest.php
Size: 0,431 Bytes - Last Modified: 2021-12-23T10:31:58+00:00
/var/www/docs.ssmods.com/process/src/thirdparty/html5lib-php/tests/HTML5/ParserTest.php
12345678910111213141516 | <?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'); } } |