Exemplo 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);
 }
Exemplo n.º 2
0
 public function testSamplePropertiesAreCorrectV2()
 {
     $this->entry->setMajorProtocolVersion(2);
     $this->entry->transferFromXML($this->v2entryText);
     $this->verifyAllSamplePropertiesAreCorrectV2($this->entry);
 }