|
|
@@ -441,4 +441,22 @@ class Zend_Feed_ImportTest extends PHPUnit_Framework_TestCase
|
|
|
$this->assertType('Zend_Feed_Exception', $e);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @issue ZF-5903
|
|
|
+ */
|
|
|
+ public function testFindFeedsIncludesUriAsArrayKey()
|
|
|
+ {
|
|
|
+ if (!defined('TESTS_ZEND_FEED_READER_ONLINE_ENABLED')
|
|
|
+ || !constant('TESTS_ZEND_FEED_READER_ONLINE_ENABLED')
|
|
|
+ ) {
|
|
|
+ $this->markTestSkipped('testFindFeedsIncludesUriAsArrayKey() requires a network connection');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Zend_Feed::setHttpClient(new Zend_Http_Client);
|
|
|
+ $feeds = Zend_Feed::findFeeds('http://www.planet-php.net');
|
|
|
+ $this->assertEquals(array(
|
|
|
+ 'http://www.planet-php.org:80/rss/', 'http://www.planet-php.org:80/rdf/'
|
|
|
+ ), array_keys($feeds));
|
|
|
+ }
|
|
|
}
|