You are here

public function Html5Test::testSaveHTML 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::testSaveHTML()

File

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

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

public function testSaveHTML() {
  $dom = $this->html5
    ->load(__DIR__ . '/Html5Test.html');
  $this
    ->assertInstanceOf('\\DOMDocument', $dom);
  $this
    ->assertEmpty($this->html5
    ->getErrors());
  $saved = $this->html5
    ->saveHTML($dom);
  $this
    ->assertRegExp('|<p>This is a test.</p>|', $saved);
}