summaryrefslogtreecommitdiff
path: root/test/HTML5/Serializer/TraverserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/HTML5/Serializer/TraverserTest.php')
-rw-r--r--test/HTML5/Serializer/TraverserTest.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/HTML5/Serializer/TraverserTest.php b/test/HTML5/Serializer/TraverserTest.php
index a156553..d4ae7b3 100644
--- a/test/HTML5/Serializer/TraverserTest.php
+++ b/test/HTML5/Serializer/TraverserTest.php
@@ -1,13 +1,12 @@
<?php
+
namespace Masterminds\HTML5\Tests\Serializer;
use Masterminds\HTML5\Serializer\OutputRules;
use Masterminds\HTML5\Serializer\Traverser;
-use Masterminds\HTML5\Parser;
class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
{
-
protected $markup = '<!doctype html>
<html lang="en">
<head>
@@ -28,7 +27,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
* Using reflection we make a protected method accessible for testing.
*
* @param string $name
- * The name of the method on the Traverser class to test.
+ * The name of the method on the Traverser class to test
*
* @return \ReflectionMethod \ReflectionMethod for the specified method
*/
@@ -51,7 +50,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
// We return both the traverser and stream so we can pull from it.
return array(
$t,
- $stream
+ $stream,
);
}
@@ -84,7 +83,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
$t->walk();
- $this->assertEquals($html, stream_get_contents($stream, - 1, 0));
+ $this->assertEquals($html, stream_get_contents($stream, -1, 0));
}
public function testFragment()
@@ -99,7 +98,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
$t->walk();
- $this->assertEquals($html, stream_get_contents($stream, - 1, 0));
+ $this->assertEquals($html, stream_get_contents($stream, -1, 0));
}
public function testProcessorInstructionDeprecated()
@@ -116,7 +115,7 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
$t->walk();
- $this->assertEquals($html, stream_get_contents($stream, - 1, 0));
+ $this->assertEquals($html, stream_get_contents($stream, -1, 0));
}
public function testProcessorInstruction()
@@ -132,6 +131,6 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
$t = new Traverser($dom, $stream, $r, $this->html5->getOptions());
$t->walk();
- $this->assertEquals($html, stream_get_contents($stream, - 1, 0));
+ $this->assertEquals($html, stream_get_contents($stream, -1, 0));
}
}