summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-04-16 21:40:35 -0400
committerMatt Farina <[email protected]>2013-04-16 21:40:35 -0400
commitd1ea5d11c015bbad698af0dd300eb658fa532c5e (patch)
tree8b396d3daafbf052bde8277539982e33c8c93933 /test
parentcae0a06475803bb682b0edfba4d45d3d104ac3e7 (diff)
Stubbed out the TraverserTest and moved the SerielizerTest to the Serielizer subdirectory.
Diffstat (limited to 'test')
-rw-r--r--test/HTML5/Serializer/SerializerTest.php (renamed from test/HTML5/SerializerTest.php)12
-rw-r--r--test/HTML5/Serializer/TraverserTest.php10
2 files changed, 16 insertions, 6 deletions
diff --git a/test/HTML5/SerializerTest.php b/test/HTML5/Serializer/SerializerTest.php
index ee8804e..a06fd50 100644
--- a/test/HTML5/SerializerTest.php
+++ b/test/HTML5/Serializer/SerializerTest.php
@@ -3,9 +3,9 @@
namespace HTML5\Tests;
-use \HTML5\Serializer;
+use \HTML5\Serializer\Serializer;
-require_once 'TestCase.php';
+require_once __DIR__ . '/../TestCase.php';
/**
* Test the Serializer.
@@ -13,14 +13,14 @@ require_once 'TestCase.php';
* These tests are all dependent upon the parser. So if the parser
* fails, the results of the serializer tests may not be conclusive.
*/
-class SerializerTest extends TestCase {
+class SerializerTest extends \HTML5\Tests\TestCase {
/**
* Parse and serialize a string.
*/
protected function cycle($html) {
$dom = \HTML5::parse($html);
- $ser = new \HTML5\Serializer($dom, FALSE);
+ $ser = new Serializer($dom, FALSE);
$out = $ser->saveHTML();
return $out;
@@ -32,7 +32,7 @@ class SerializerTest extends TestCase {
$dom = \HTML5::parse($html);
$this->assertTrue($dom instanceof \DOMDocument, "Canary");
- $ser = new \HTML5\Serializer($dom, FALSE);
+ $ser = new Serializer($dom, FALSE);
$out = $ser->saveHTML();
$this->assertTrue(count($out) >= count($html), 'Byte counts');
@@ -47,7 +47,7 @@ class SerializerTest extends TestCase {
$dom = \HTML5::parse($html);
$this->assertTrue($dom instanceof \DOMDocument, "Canary");
- $ser = new \HTML5\Serializer($dom, FALSE);
+ $ser = new Serializer($dom, FALSE);
$out = fopen("php://temp", "w");
$ser->save($out);
diff --git a/test/HTML5/Serializer/TraverserTest.php b/test/HTML5/Serializer/TraverserTest.php
new file mode 100644
index 0000000..c7e43d8
--- /dev/null
+++ b/test/HTML5/Serializer/TraverserTest.php
@@ -0,0 +1,10 @@
+<?php
+namespace HTML5\Tests;
+
+use \HTML5\Serializer\Traverser;
+
+require_once __DIR__ . '/../TestCase.php';
+
+class TraverserTest extends \HTML5\Tests\TestCase {
+
+} \ No newline at end of file