blob: 7f3623716a74960063a1264a214d22eda9a911d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
namespace HTML5\Tests;
use \HTML5\Parser;
require_once 'TestCase.php';
class ParserTest extends TestCase {
public function testParse() {
$result = Parser::parse('<html><body></body></html>');
$this->assertTrue($result instanceof \DOMDocument);
}
public function testParseFragment() {
$result = Parser::parseFragment('<b>asdf</b> foo');
$this->assertTrue($result instanceof \DOMNodeList);
}
}
|