diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-17 09:01:54 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-17 09:02:13 +0100 |
commit | 867cb7dbf960dc0cfbf7e59d656d1337bb59c526 (patch) | |
tree | 5bbdf1eef51cd3747f55ef2c524364f9cd3bf029 /vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php | |
parent | a813b535eeb517e0ccd69a90d0058756014a1e01 (diff) |
update picofeed, fix #695
Diffstat (limited to 'vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php')
-rw-r--r-- | vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php b/vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php index bc0824502..f06ff3544 100644 --- a/vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php +++ b/vendor/fguillot/picofeed/tests/Parser/Rss10ParserTest.php @@ -26,14 +26,21 @@ class Rss10ParserTest extends PHPUnit_Framework_TestCase { $parser = new Rss10(file_get_contents('tests/fixtures/planete-jquery.xml')); $feed = $parser->execute(); - $this->assertEquals('http://planete-jquery.fr', $feed->getUrl()); + $this->assertEquals('', $feed->getFeedUrl()); + } + + public function testSiteUrl() + { + $parser = new Rss10(file_get_contents('tests/fixtures/planete-jquery.xml')); + $feed = $parser->execute(); + $this->assertEquals('http://planete-jquery.fr/', $feed->getSiteUrl()); } public function testFeedId() { $parser = new Rss10(file_get_contents('tests/fixtures/planete-jquery.xml')); $feed = $parser->execute(); - $this->assertEquals('http://planete-jquery.fr', $feed->getId()); + $this->assertEquals('http://planete-jquery.fr/', $feed->getId()); } public function testFeedDate() |