From 23b776a0bfa4d324028d24ffd61206b77057c053 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Mon, 15 Jul 2019 23:21:09 +0100 Subject: Add test case --- test/ReadabilityTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ReadabilityTest.php') diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php index ca208e8..95366bc 100644 --- a/test/ReadabilityTest.php +++ b/test/ReadabilityTest.php @@ -3,6 +3,7 @@ namespace andreskrey\Readability\Test; use andreskrey\Readability\Configuration; +use andreskrey\Readability\Nodes\DOM\DOMDocument; use andreskrey\Readability\ParseException; use andreskrey\Readability\Readability; @@ -33,6 +34,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase $readability = new Readability($configuration); $readability->parse($testPage->getSourceHTML()); +// $this->assertXmlStringEqualsXmlString($testPage->getExpectedHTML(), $readability->getContent()); $this->assertSame($testPage->getExpectedHTML(), $readability->getContent(), 'Parsed text does not match the expected one.'); } -- cgit v1.2.3