diff options
Diffstat (limited to 'test/HTML5')
-rw-r--r-- | test/HTML5/Serializer/SerializerTest.php (renamed from test/HTML5/SerializerTest.php) | 12 | ||||
-rw-r--r-- | test/HTML5/Serializer/TraverserTest.php | 10 |
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 |