summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2014-06-11 08:28:02 +0200
committerAsmir Mustafic <[email protected]>2014-06-11 08:28:02 +0200
commit92fbcfdd1e4f788c981dc91fee8336cbd9c2c484 (patch)
tree83bafa0a27ecdb453ee554293e32401d4d990c98
parent10c06d91c2eb68f0d9c09ac50f6542a3121037e0 (diff)
Fixed broken test after #37 marge
-rw-r--r--test/HTML5/Serializer/OutputRulesTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/HTML5/Serializer/OutputRulesTest.php b/test/HTML5/Serializer/OutputRulesTest.php
index 1e064a5..8e610fd 100644
--- a/test/HTML5/Serializer/OutputRulesTest.php
+++ b/test/HTML5/Serializer/OutputRulesTest.php
@@ -101,7 +101,7 @@ class OutputRulesTest extends \HTML5\Tests\TestCase {
}
function testElementWithScript() {
- $dom = \HTML5::loadHTML('<!doctype html>
+ $dom = $this->html5->loadHTML('<!doctype html>
<html lang="en">
<head>
<script>
@@ -119,8 +119,8 @@ class OutputRulesTest extends \HTML5\Tests\TestCase {
</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));
@@ -135,7 +135,7 @@ class OutputRulesTest extends \HTML5\Tests\TestCase {
}
function testElementWithStyle() {
- $dom = \HTML5::loadHTML('<!doctype html>
+ $dom = $this->html5->loadHTML('<!doctype html>
<html lang="en">
<head>
<style>
@@ -150,8 +150,8 @@ class OutputRulesTest extends \HTML5\Tests\TestCase {
</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));