public function TraverserTest::testConstruct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Serializer/TraverserTest.php \Masterminds\HTML5\Tests\Serializer\TraverserTest::testConstruct()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ TraverserTest.php, line 58
Class
Namespace
Masterminds\HTML5\Tests\SerializerCode
public function testConstruct() {
// The traverser needs a place to write the output to. In our case we
// use a stream in temp space.
$stream = fopen('php://temp', 'w');
$html5 = $this
->getInstance();
$r = new OutputRules($stream, $this->html5
->getOptions());
$dom = $this->html5
->loadHTML($this->markup);
$t = new Traverser($dom, $stream, $r, $html5
->getOptions());
$this
->assertInstanceOf('\\Masterminds\\HTML5\\Serializer\\Traverser', $t);
}