diff options
author | Andres Rey <[email protected]> | 2018-11-25 21:21:46 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2018-11-25 21:21:46 +0000 |
commit | e0029b0bcbd91bf1d4b960e15a87fcc4964cb8ee (patch) | |
tree | f5b5b2991af08181d8fea884892fd409d2129026 /test | |
parent | 6d34e50bd64e66c5acbbc85c45a0d46119ef64cc (diff) |
Test arrays instead of json strings
Diffstat (limited to 'test')
-rw-r--r-- | test/ReadabilityTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php index 95ad318..97ba141 100644 --- a/test/ReadabilityTest.php +++ b/test/ReadabilityTest.php @@ -59,7 +59,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase $readability = new Readability($configuration); $readability->parse($html); - $this->assertSame($expectedImages, json_encode($readability->getImages())); + $this->assertSame(json_decode($expectedImages, true), $readability->getImages()); } public function getSamplePages() |