summaryrefslogtreecommitdiff
path: root/test/ReadabilityTest.php
diff options
context:
space:
mode:
authorFiveFilters.org <[email protected]>2021-08-13 21:43:59 +0200
committerFiveFilters.org <[email protected]>2021-08-13 21:43:59 +0200
commitff72a2660a30eecb6c14eb1e0253a3949e3307a3 (patch)
tree661606916a4eb61503bc04fd87ebc3a78d471104 /test/ReadabilityTest.php
parent6f9439ebf277b8694d30e1ef76292b5ab1a7e899 (diff)
Clean up test classes/redundant code
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.');