From 35e00ed6d13a694e4f7db1024bf777757bc64bc1 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Tue, 9 Apr 2013 17:32:29 -0500 Subject: Updated ParserTest to use PHPUnit. --- test/HTML5/ParserTest.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'test/HTML5/ParserTest.php') diff --git a/test/HTML5/ParserTest.php b/test/HTML5/ParserTest.php index 43b87e9..7f36237 100644 --- a/test/HTML5/ParserTest.php +++ b/test/HTML5/ParserTest.php @@ -1,15 +1,17 @@ '); - $this->assertIsA($result, 'DOMDocument'); - } - public function testParseFragment() { - $result = HTML5_Parser::parseFragment('asdf foo'); - $this->assertIsA($result, 'DOMNodeList'); - } +require_once 'TestCase.php'; + +class ParserTest extends TestCase { + public function testParse() { + $result = Parser::parse(''); + $this->assertTrue($result instanceof \DOMDocument); + } + public function testParseFragment() { + $result = Parser::parseFragment('asdf foo'); + $this->assertTrue($result instanceof \DOMNodeList); + } } -- cgit v1.2.3