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