diff options
author | Pedro Amorim <[email protected]> | 2018-03-14 15:59:37 +0100 |
---|---|---|
committer | Pedro Amorim <[email protected]> | 2018-03-14 16:19:38 +0100 |
commit | c9ea925acd0ba9a91c9126c851943356934616a7 (patch) | |
tree | 108c94b82a971273a5ee17e6bb1c8aa11579fb50 | |
parent | 9092772c87c2a1a1a0cd8c792780fc6106cafb05 (diff) |
Add test for error C14N on null
-rw-r--r-- | test/ReadabilityTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php index fe17b23..95293d9 100644 --- a/test/ReadabilityTest.php +++ b/test/ReadabilityTest.php @@ -117,4 +117,10 @@ class ReadabilityTest extends \PHPUnit_Framework_TestCase $this->expectExceptionMessage('Could not parse text.'); $parser->parse('<html><body><p>hello</p></body></html>'); } + + public function testReadabilityCallGetContentWithNoContent() + { + $parser = new Readability(new Configuration()); + $this->assertNull($parser->getContent()); + } } |