summaryrefslogtreecommitdiff
path: root/test/ReadabilityTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/ReadabilityTest.php')
-rw-r--r--test/ReadabilityTest.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php
index 4ca71cf..a0d7514 100644
--- a/test/ReadabilityTest.php
+++ b/test/ReadabilityTest.php
@@ -40,11 +40,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
$expected_no_whitespace = preg_replace($from, $to, $testPage->getExpectedHTML());
$readability_no_whitespace = preg_replace($from, $to, $readability->getContent());
- $this->assertSame(
- preg_replace($from, $to, $expected_no_whitespace),
- preg_replace($from, $to, $readability_no_whitespace),
- 'Parsed text does not match the expected one.'
- );
+ $this->assertSame($expected_no_whitespace, $readability_no_whitespace, 'Parsed text does not match the expected one.');
//$this->assertSame($testPage->getExpectedHTML(), $readability->getContent(), 'Parsed text does not match the expected one.');
//$this->assertXmlStringEqualsXmlString($testPage->getExpectedHTML(), $readability->getContent(), 'Parsed text does not match the expected one.');