You are here

public function Html5Test::testLoadHTMLFragment in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::testLoadHTMLFragment()

File

vendor/masterminds/html5/test/HTML5/Html5Test.php, line 95

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

public function testLoadHTMLFragment() {
  $fragment = '<section id="Foo"><div class="Bar">Baz</div></section>';
  $dom = $this->html5
    ->loadHTMLFragment($fragment);
  $this
    ->assertInstanceOf('\\DOMDocumentFragment', $dom);
  $this
    ->assertEmpty($this->html5
    ->getErrors());
}