function testRetrieveNextAndPreviousFeedsFromService() { $user = constant('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL'); $pass = constant('TESTS_ZEND_GDATA_CLIENTLOGIN_PASSWORD'); $this->blog = constant('TESTS_ZEND_GDATA_BLOG_ID'); $service = 'youtube'; $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); $gd = new Zend_Gdata($client); $feed = $gd->getFeed('http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured', 'Zend_Gdata_App_Feed'); $this->assertNotNull($feed); $this->assertTrue($feed instanceof Zend_Gdata_App_Feed); $this->assertEquals($feed->count(), 25); $nextFeed = $gd->getNextFeed($feed); $this->assertNotNull($nextFeed); $this->assertTrue($nextFeed instanceof Zend_Gdata_App_Feed); $this->assertEquals($nextFeed->count(), 25); $previousFeed = $gd->getPreviousFeed($nextFeed); $this->assertNotNull($previousFeed); $this->assertTrue($previousFeed instanceof Zend_Gdata_App_Feed); $this->assertEquals($previousFeed->count(), 25); }