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); }