diff options
author | Matt Farina <[email protected]> | 2013-05-22 21:51:10 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2013-05-22 21:51:10 -0400 |
commit | 5ab279a9da206c60789a2ad23f2895f38be95fea (patch) | |
tree | 67eaacd142d4ccf8d05f5f0020c11316bfcacc84 /test/HTML5/Serializer/SerializerTest.php | |
parent | 0e69431f51bd336d511ae22163820c6d038eb1b5 (diff) |
Updating the serializer tests to use the proper html5 static method.
Diffstat (limited to 'test/HTML5/Serializer/SerializerTest.php')
-rw-r--r-- | test/HTML5/Serializer/SerializerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/HTML5/Serializer/SerializerTest.php b/test/HTML5/Serializer/SerializerTest.php index a06fd50..5dd5dec 100644 --- a/test/HTML5/Serializer/SerializerTest.php +++ b/test/HTML5/Serializer/SerializerTest.php @@ -19,8 +19,8 @@ class SerializerTest extends \HTML5\Tests\TestCase { * Parse and serialize a string. */ protected function cycle($html) { - $dom = \HTML5::parse($html); - $ser = new Serializer($dom, FALSE); + $dom = \HTML5::loadHTML($html); + $ser = new Serializer($dom); $out = $ser->saveHTML(); return $out; @@ -29,7 +29,7 @@ class SerializerTest extends \HTML5\Tests\TestCase { public function testSaveHTML() { $html = '<!DOCTYPE html><html><body>test</body></html>'; - $dom = \HTML5::parse($html); + $dom = \HTML5::loadHTML($html); $this->assertTrue($dom instanceof \DOMDocument, "Canary"); $ser = new Serializer($dom, FALSE); @@ -44,7 +44,7 @@ class SerializerTest extends \HTML5\Tests\TestCase { public function testSave() { $html = '<!DOCTYPE html><html><body>test</body></html>'; - $dom = \HTML5::parse($html); + $dom = \HTML5::loadHTML($html); $this->assertTrue($dom instanceof \DOMDocument, "Canary"); $ser = new Serializer($dom, FALSE); |