public function Html5Test::testItWorks in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::testItWorks()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Html5Test.php, line 145
Class
Namespace
Masterminds\HTML5\TestsCode
public function testItWorks() {
$dom = $this->html5
->load(__DIR__ . '/Html5Test.html');
$this
->assertInstanceOf('\\DOMDocument', $dom);
$this
->assertEmpty($this->html5
->getErrors());
$saved = $this->html5
->saveHTML($dom);
$dom2 = $this->html5
->loadHTML($saved);
$this
->assertInstanceOf('\\DOMDocument', $dom2);
$this
->assertEmpty($this->html5
->getErrors());
}