public function setUp() { $published = new Zend_Gdata_App_Extension_Published("2011-10-21 12:00:00"); $updated = new Zend_Gdata_App_Extension_Updated("2011-10-21 12:20:00"); $id = new Zend_Gdata_App_Extension_Id("Az2cv12"); $entry = new Zend_Gdata_YouTube_PlaylistListEntry(); $entry->setMajorProtocolVersion(2); $entry->setId($id); $entry->setTitle(new Zend_Gdata_App_Extension_Title("one title")); $entry->setUpdated($updated); $entry->setPublished($published); $entry->setLink([new Zend_Gdata_App_Extension_link("one url", "alternate")]); $entry->setDescription(new Zend_Gdata_App_Extension_Summary("one description")); $this->object = new Bridge_Api_Youtube_Container($entry, 'playlist', 'my_thumbnail'); }
public function testConvertPlaylistListEntryToAndFromString() { $this->entry->transferFromXML($this->entryText); $entryXml = $this->entry->saveXML(); $newPlaylistListEntry = new Zend_Gdata_YouTube_PlaylistListEntry(); $newPlaylistListEntry->transferFromXML($entryXml); $this->verifyAllSamplePropertiesAreCorrect($newPlaylistListEntry); $newPlaylistListEntryXml = $newPlaylistListEntry->saveXML(); $this->assertEquals($entryXml, $newPlaylistListEntryXml); }