public function testEmptyInboxEntryToAndFromStringShouldMatchV2() { $this->entry->transferFromXML($this->v2entryText); $entryXml = $this->entry->saveXML(); $newInboxEntry = new YouTube\InboxEntry(); $newInboxEntry->transferFromXML($entryXml); $newInboxEntry->setMajorProtocolVersion(2); $newInboxEntryXml = $newInboxEntry->saveXML(); $this->assertTrue($entryXml == $newInboxEntryXml); }
public function testSamplePropertiesAreCorrectV2() { $this->entry->setMajorProtocolVersion(2); $this->entry->transferFromXML($this->v2entryText); $this->verifyAllSamplePropertiesAreCorrectV2($this->entry); }