Exemplo n.º 1
0
 public function testConvertVideoEntryToAndFromString() {
     $this->entry->transferFromXML($this->entryText);
     $entryXml = $this->entry->saveXML();
     $newVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
     $newVideoEntry->transferFromXML($entryXml);
     $this->verifyAllSamplePropertiesAreCorrect($newVideoEntry);
     $newVideoEntryXml = $newVideoEntry->saveXML();
     $this->assertEquals($entryXml, $newVideoEntryXml);
 }