/tests/ZendTest/Feed/Reader/Feed/RssTest.php
https://github.com/zucchi/zf2 · PHP · 1438 lines · 1213 code · 178 blank · 47 comment · 0 complexity · 85df705b755838510801b8910fe887d4 MD5 · raw file
- <?php
- /**
- * Zend Framework (http://framework.zend.com/)
- *
- * @link http://github.com/zendframework/zf2 for the canonical source repository
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @package Zend_Feed
- */
- namespace ZendTest\Feed\Reader\Feed;
- use DateTime;
- use Zend\Feed\Reader;
- /**
- * @category Zend
- * @package Zend_Feed
- * @subpackage UnitTests
- * @group Zend_Feed
- * @group Zend_Feed_Reader
- */
- class RssTest extends \PHPUnit_Framework_TestCase
- {
- protected $feedSamplePath = null;
- protected $expectedCats = array();
- protected $expectedCatsRdf = array();
- protected $expectedCatsAtom = array();
- public function setup()
- {
- Reader\Reader::reset();
- $this->feedSamplePath = dirname(__FILE__) . '/_files/Rss';
- $this->expectedCats = array(
- array(
- 'term' => 'topic1',
- 'scheme' => 'http://example.com/schema1',
- 'label' => 'topic1'
- ),
- array(
- 'term' => 'topic1',
- 'scheme' => 'http://example.com/schema2',
- 'label' => 'topic1'
- ),
- array(
- 'term' => 'topic2',
- 'scheme' => 'http://example.com/schema1',
- 'label' => 'topic2'
- )
- );
- $this->expectedCatsRdf = array(
- array(
- 'term' => 'topic1',
- 'scheme' => null,
- 'label' => 'topic1'
- ),
- array(
- 'term' => 'topic2',
- 'scheme' => null,
- 'label' => 'topic2'
- )
- );
- $this->expectedCatsAtom = array(
- array(
- 'term' => 'topic1',
- 'scheme' => 'http://example.com/schema1',
- 'label' => 'topic1'
- ),
- array(
- 'term' => 'topic1',
- 'scheme' => 'http://example.com/schema2',
- 'label' => 'topic1'
- ),
- array(
- 'term' => 'cat_dog',
- 'scheme' => 'http://example.com/schema1',
- 'label' => 'Cat & Dog'
- )
- );
- }
- /**
- * Get Title (Unencoded Text)
- */
- public function testGetsTitleFromRss20()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss20.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss094()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss094.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss093()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss093.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss092()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss092.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss091()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss091.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss10.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss090()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/rss090.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- // DC 1.0
- public function testGetsTitleFromRss20_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss20.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss094_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss094.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss093_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss093.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss092_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss092.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss091_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss091.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss10_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss10.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss090_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc10/rss090.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- // DC 1.1
- public function testGetsTitleFromRss20_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss20.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss094_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss094.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss093_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss093.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss092_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss092.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss091_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss091.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss10_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss10.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss090_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/dc11/rss090.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- // Atom 1.0
- public function testGetsTitleFromRss20_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss20.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss094_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss094.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss093_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss093.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss092_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss092.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss091_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss091.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss10_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss10.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- public function testGetsTitleFromRss090_atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/atom10/rss090.xml')
- );
- $this->assertEquals('My Title', $feed->getTitle());
- }
- // Missing Title
- public function testGetsTitleFromRss20_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss20.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- public function testGetsTitleFromRss094_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss094.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- public function testGetsTitleFromRss093_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss093.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- public function testGetsTitleFromRss092_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss092.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- public function testGetsTitleFromRss091_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss091.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- public function testGetsTitleFromRss10_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss10.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- public function testGetsTitleFromRss090_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/title/plain/none/rss090.xml')
- );
- $this->assertEquals(null, $feed->getTitle());
- }
- /**
- * Get Authors (Unencoded Text)
- */
- public function testGetsAuthorArrayFromRss20()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss20.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss094()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss094.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss093()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss093.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss092()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss092.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss091()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss091.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss10.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss090()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss090.xml')
- );
- $this->assertEquals(array(
- array('email'=>'joe@example.com','name'=>'Joe Bloggs'),
- array('email'=>'jane@example.com','name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- // DC 1.0
- public function testGetsAuthorArrayFromRss20_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss20.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss094_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss094.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss093_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss093.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss092_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss092.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss091_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss091.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss10_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss10.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss090_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss090.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- // DC 1.1
- public function testGetsAuthorArrayFromRss20_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss20.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss094_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss094.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss093_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss093.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss092_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss092.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss091_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss091.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss10_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss10.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss090_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss090.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- // Atom 1.0
- public function testGetsAuthorArrayFromRss20_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss20.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss094_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss094.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss093_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss093.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss092_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss092.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss091_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss091.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss10_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss10.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- public function testGetsAuthorArrayFromRss090_Atom10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/atom10/rss090.xml')
- );
- $this->assertEquals(array(
- array('name'=>'Joe Bloggs'), array('name'=>'Jane Bloggs')
- ), (array) $feed->getAuthors());
- $this->assertEquals(array('Joe Bloggs','Jane Bloggs'), $feed->getAuthors()->getValues());
- }
- // Missing Authors
- public function testGetsAuthorArrayFromRss20_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss20.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- public function testGetsAuthorArrayFromRss094_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss094.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- public function testGetsAuthorArrayFromRss093_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss093.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- public function testGetsAuthorArrayFromRss092_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss092.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- public function testGetsAuthorArrayFromRss091_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss091.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- public function testGetsAuthorArrayFromRss10_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss10.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- public function testGetsAuthorArrayFromRss090_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss090.xml')
- );
- $this->assertEquals(null, $feed->getAuthors());
- }
- /**
- * Get Single Author (Unencoded Text)
- */
- public function testGetsSingleAuthorFromRss20()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss20.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss094()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss094.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss093()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss093.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss092()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss092.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss091()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss091.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss10.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss090()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/rss090.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs','email'=>'joe@example.com'), $feed->getAuthor());
- }
- // DC 1.0
- public function testGetsSingleAuthorFromRss20_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss20.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss094_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss094.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss093_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss093.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss092_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss092.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss091_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss091.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss10_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss10.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss090_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc10/rss090.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- // DC 1.1
- public function testGetsSingleAuthorFromRss20_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss20.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss094_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss094.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss093_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss093.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss092_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss092.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss091_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss091.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss10_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss10.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss090_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/dc11/rss090.xml')
- );
- $this->assertEquals(array('name'=>'Joe Bloggs'), $feed->getAuthor());
- }
- // Missing Author
- public function testGetsSingleAuthorFromRss20_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss20.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss094_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss094.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss093_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss093.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss092_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss092.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss091_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss091.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss10_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss10.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- public function testGetsSingleAuthorFromRss090_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/author/plain/none/rss090.xml')
- );
- $this->assertEquals(null, $feed->getAuthor());
- }
- /**
- * Get Copyright (Unencoded Text)
- */
- public function testGetsCopyrightFromRss20()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss20.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss094()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss094.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss093()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss093.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss092()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss092.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss091()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss091.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss10.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss090()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/rss090.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- // DC 1.0
- public function testGetsCopyrightFromRss20_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss20.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss094_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss094.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss093_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss093.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss092_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss092.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss091_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss091.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss10_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss10.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss090_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc10/rss090.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- // DC 1.1
- public function testGetsCopyrightFromRss20_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss20.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss094_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss094.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss093_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss093.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss092_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss092.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss091_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss091.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss10_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss10.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss090_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/dc11/rss090.xml')
- );
- $this->assertEquals('Copyright 2008', $feed->getCopyright());
- }
- // Missing Copyright
- public function testGetsCopyrightFromRss20_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss20.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss094_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss094.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss093_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss093.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss092_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss092.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss091_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss091.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss10_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss10.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- public function testGetsCopyrightFromRss090_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/copyright/plain/none/rss090.xml')
- );
- $this->assertEquals(null, $feed->getCopyright());
- }
- /**
- * Get Description (Unencoded Text)
- */
- public function testGetsDescriptionFromRss20()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss20.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss094()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss094.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss093()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss093.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss092()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss092.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss091()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss091.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss10.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss090()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/rss090.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- // DC 1.0
- public function testGetsDescriptionFromRss20_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss20.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss094_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss094.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss093_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss093.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss092_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss092.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss091_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss091.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss10_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss10.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss090_Dc10()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc10/rss090.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- // DC 1.1
- public function testGetsDescriptionFromRss20_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss20.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss094_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss094.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss093_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss093.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss092_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss092.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss091_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss091.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss10_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss10.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- public function testGetsDescriptionFromRss090_Dc11()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/dc11/rss090.xml')
- );
- $this->assertEquals('My Description', $feed->getDescription());
- }
- // Missing Description
- public function testGetsDescriptionFromRss20_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/none/rss20.xml')
- );
- $this->assertEquals(null, $feed->getDescription());
- }
- public function testGetsDescriptionFromRss094_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/none/rss094.xml')
- );
- $this->assertEquals(null, $feed->getDescription());
- }
- public function testGetsDescriptionFromRss093_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/none/rss093.xml')
- );
- $this->assertEquals(null, $feed->getDescription());
- }
- public function testGetsDescriptionFromRss092_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($this->feedSamplePath.'/description/plain/none/rss092.xml')
- );
- $this->assertEquals(null, $feed->getDescription());
- }
- public function testGetsDescriptionFromRss091_None()
- {
- $feed = Reader\Reader::importString(
- file_get_contents($t