public function testConvertInboxEntryToAndFromString() { $this->entry->transferFromXML($this->entryText); $entryXml = $this->entry->saveXML(); $newInboxEntry = new YouTube\InboxEntry(); $newInboxEntry->transferFromXML($entryXml); $this->verifyAllSamplePropertiesAreCorrect($newInboxEntry); $newInboxEntryXml = $newInboxEntry->saveXML(); $this->assertEquals($entryXml, $newInboxEntryXml); }
public function testSamplePropertiesAreCorrectV2() { $this->entry->setMajorProtocolVersion(2); $this->entry->transferFromXML($this->v2entryText); $this->verifyAllSamplePropertiesAreCorrectV2($this->entry); }