From 1cb53d256c89b73d8b8b212c68ba0202fbded06e Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Tue, 5 Nov 2013 22:06:38 -0500 Subject: Added more tests for the HTML5 class to complete test coverage. --- test/HTML5/Html5Test.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/HTML5/Html5Test.php') 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() { -- cgit v1.2.3