public function DOMTreeBuilderTest::testDocument in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/test/HTML5/Parser/DOMTreeBuilderTest.php \Masterminds\HTML5\Tests\Parser\DOMTreeBuilderTest::testDocument()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ DOMTreeBuilderTest.php, line 51 - Test the Tree Builder.
Class
- DOMTreeBuilderTest
- These tests are functional, not necessarily unit tests.
Namespace
Masterminds\HTML5\Tests\ParserCode
public function testDocument() {
$html = "<!DOCTYPE html><html></html>";
$doc = $this
->parse($html);
$this
->assertInstanceOf('\\DOMDocument', $doc);
$this
->assertEquals('html', $doc->documentElement->tagName);
$this
->assertEquals('http://www.w3.org/1999/xhtml', $doc->documentElement->namespaceURI);
}