Skip to content

Commit

Permalink
Fixed broken test after #37 marge
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Jun 11, 2014
1 parent 10c06d9 commit 92fbcfd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/HTML5/Serializer/OutputRulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function testElement() {
}

function testElementWithScript() {
$dom = \HTML5::loadHTML('<!doctype html>
$dom = $this->html5->loadHTML('<!doctype html>
<html lang="en">
<head>
<script>
Expand All @@ -119,8 +119,8 @@ function testElementWithScript() {
</html>');

$stream = fopen('php://temp', 'w');
$r = new OutputRules($stream, \HTML5::options());
$t = new Traverser($dom, $stream, $r, \HTML5::options());
$r = new OutputRules($stream, $this->html5->getOptions());
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());

$script = $dom->getElementsByTagName('script');
$r->element($script->item(0));
Expand All @@ -135,7 +135,7 @@ function testElementWithScript() {
}

function testElementWithStyle() {
$dom = \HTML5::loadHTML('<!doctype html>
$dom = $this->html5->loadHTML('<!doctype html>
<html lang="en">
<head>
<style>
Expand All @@ -150,8 +150,8 @@ function testElementWithStyle() {
</html>');

$stream = fopen('php://temp', 'w');
$r = new OutputRules($stream, \HTML5::options());
$t = new Traverser($dom, $stream, $r, \HTML5::options());
$r = new OutputRules($stream, $this->html5->getOptions());
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());

$style = $dom->getElementsByTagName('style');
$r->element($style->item(0));
Expand Down

0 comments on commit 92fbcfd

Please sign in to comment.