summaryrefslogtreecommitdiff
path: root/test/ReadabilityTest.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-03-18 20:37:45 +0000
committerAndres Rey <[email protected]>2018-03-18 20:37:45 +0000
commit094aba5d32f24aaafcc6769b31fca4b7166ae994 (patch)
tree29883797fc1edda70e75af5b3c2e71d6bc74747e /test/ReadabilityTest.php
parent1a807237eab8251b4c964b1fe73a6e1720a650f0 (diff)
parent83d73c8c9bee58a8c35282904c5a0825eb59f997 (diff)
Merge remote-tracking branch 'origin/development' into development
# Conflicts: # CHANGELOG.md # composer.json
Diffstat (limited to 'test/ReadabilityTest.php')
-rw-r--r--test/ReadabilityTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php
index ec9a546..c20574e 100644
--- a/test/ReadabilityTest.php
+++ b/test/ReadabilityTest.php
@@ -108,4 +108,10 @@ class ReadabilityTest extends \PHPUnit_Framework_TestCase
$this->expectExceptionMessage('Could not parse text.');
$parser->parse('<html><body><p></p></body></html>');
}
+
+ public function testReadabilityCallGetContentWithNoContent()
+ {
+ $parser = new Readability(new Configuration());
+ $this->assertNull($parser->getContent());
+ }
}