From c9ea925acd0ba9a91c9126c851943356934616a7 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 14 Mar 2018 15:59:37 +0100 Subject: Add test for error C14N on null --- test/ReadabilityTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ReadabilityTest.php') 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('

hello

'); } + + public function testReadabilityCallGetContentWithNoContent() + { + $parser = new Readability(new Configuration()); + $this->assertNull($parser->getContent()); + } } -- cgit v1.2.3