summaryrefslogtreecommitdiff
path: root/test/HTML5/Html5Test.php
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-11-05 22:06:38 -0500
committerMatt Farina <[email protected]>2013-11-05 22:06:38 -0500
commit1cb53d256c89b73d8b8b212c68ba0202fbded06e (patch)
tree5b742688d2a9dc72ca679d3e9f84e3f2795f1f80 /test/HTML5/Html5Test.php
parent5a061feb7f054ff3e27a5baf1bafa876ca68226a (diff)
Added more tests for the HTML5 class to complete test coverage.
Diffstat (limited to 'test/HTML5/Html5Test.php')
-rw-r--r--test/HTML5/Html5Test.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php
index 13f5b19..1d3d7ab 100644
--- a/test/HTML5/Html5Test.php
+++ b/test/HTML5/Html5Test.php
@@ -26,6 +26,15 @@ class Html5Test extends TestCase {
$dom = \HTML5::load(__DIR__ . '/Html5Test.html');
$this->assertInstanceOf('\DOMDocument', $dom);
$this->assertEmpty($dom->errors);
+
+ $file = fopen(__DIR__ . '/Html5Test.html', 'r');
+ $dom = \HTML5::load($file);
+ $this->assertInstanceOf('\DOMDocument', $dom);
+ $this->assertEmpty($dom->errors);
+
+ $dom = \HTML5::loadHTMLFile(__DIR__ . '/Html5Test.html');
+ $this->assertInstanceOf('\DOMDocument', $dom);
+ $this->assertEmpty($dom->errors);
}
public function testLoadHTML() {