Ejemplo n.º 1
0
 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);
 }