blob: 43b87e9137f618eb087a563ee50d14510cacd613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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');
}
}
|