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