public function TraverserTest::getTraverser 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::getTraverser()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ TraverserTest.php, line 44
Class
Namespace
Masterminds\HTML5\Tests\SerializerCode
public function getTraverser() {
$stream = fopen('php://temp', 'w');
$dom = $this->html5
->loadHTML($this->markup);
$t = new Traverser($dom, $stream, $html5
->getOptions());
// We return both the traverser and stream so we can pull from it.
return array(
$t,
$stream,
);
}