summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-01-13 12:58:06 +0000
committerAndres Rey <[email protected]>2018-01-13 12:58:06 +0000
commitefb820676024418e2956b16c4b726dc782142c80 (patch)
tree33797bd8dd2d0106134fc1294a3c229f64c5a9d4 /test
parent2b136b3b15f5d0bf62288a0499cd99ac270f974d (diff)
Switch to assertSame while testing to avoid "==" type comparisons.
Diffstat (limited to 'test')
-rw-r--r--test/ReadabilityTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php
index e074983..d4c0a18 100644
--- a/test/ReadabilityTest.php
+++ b/test/ReadabilityTest.php
@@ -37,7 +37,7 @@ class ReadabilityTest extends \PHPUnit_Framework_TestCase
$readability = new Readability($configuration);
$readability->parse($html);
- $this->assertEquals($expectedResult, $readability->getContent());
+ $this->assertSame($expectedResult, $readability->getContent());
foreach ($expectedMetadata as $key => $metadata) {
$function = 'get' . $key;
@@ -68,7 +68,7 @@ class ReadabilityTest extends \PHPUnit_Framework_TestCase
$readability = new Readability($configuration);
$readability->parse($html);
- $this->assertEquals($expectedImages, json_encode($readability->getImages()));
+ $this->assertSame($expectedImages, json_encode($readability->getImages()));
}
public function getSamplePages()