public function testGetVideoRatingInfo() { $this->entry->transferFromXML($this->entryText); $videoEntry = $this->entry; $ratingInfo = $videoEntry->getVideoRatingInfo(); $this->assertEquals(4.77, $ratingInfo['average']); $this->assertEquals(1005, $ratingInfo['numRaters']); $newEntry = new Zend_Gdata_YouTube_VideoEntry(); $this->assertEquals(null, $newEntry->getVideoRatingInfo()); }