summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ReadabilityTest.php6
-rw-r--r--test/TestPage.php4
2 files changed, 3 insertions, 7 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.');
diff --git a/test/TestPage.php b/test/TestPage.php
index 812442b..954ddec 100644
--- a/test/TestPage.php
+++ b/test/TestPage.php
@@ -38,7 +38,7 @@ class TestPage
}
/**
- * @return null
+ * @return string
*/
public function getSourceHTML()
{
@@ -46,7 +46,7 @@ class TestPage
}
/**
- * @return null
+ * @return string
*/
public function getExpectedHTML()
{