/tests/Zend/Feed/Reader/Feed/RssTest.php
https://github.com/leerbag/zf2 · PHP · 1433 lines · 1197 code · 173 blank · 63 comment · 2 complexity · 3a1e1d052b9a6236096fab0f45d43439 MD5 · raw file
- <?php
- /**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Feed
- * @subpackage UnitTests
- * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
- /**
- * @namespace
- */
- namespace ZendTest\Feed\Reader\Feed;
- use Zend\Feed\Reader;
- use Zend\Date;
- /**
- * @category Zend
- * @package Zend_Feed
- * @subpackage UnitTests
- * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @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();
- if (\Zend\Registry::isRegistered('Zend_Locale')) {
- $registry = \Zend\Registry::getInstance();
- unset($registry['Zend_Locale']);
- }
- $this->_feedSamplePath = dirname(__FILE__) . '/_files/Rss';
- $this->_options = Date\Date::setOptions();
- foreach($this->_options as $k=>$v) {
- if (is_null($v)) {
- unset($this->_options[$k]);
- }
- }
- Date\Date::setOptions(array('format_type'=>'iso'));
- $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'
- )
- );
- }
-
- public function teardown()
- {
- Date\Date::setOptions($this->_options);
- }
- /**
- * 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 f