コード例 #1
0
ファイル: VideoEntryTest.php プロジェクト: alab1001101/zf2
 public function testConvertVideoEntryToAndFromString()
 {
     $this->entry->transferFromXML($this->entryText);
     $entryXml = $this->entry->saveXML();
     $newVideoEntry = new YouTube\VideoEntry();
     $newVideoEntry->transferFromXML($entryXml);
     $this->verifyAllSamplePropertiesAreCorrect($newVideoEntry);
     $newVideoEntryXml = $newVideoEntry->saveXML();
     $this->assertEquals($entryXml, $newVideoEntryXml);
 }
コード例 #2
0
 public function testEmptyVideoEntryToAndFromStringShouldMatch()
 {
     $entryXml = $this->entry->saveXML();
     $newVideoEntry = new YouTube\VideoEntry();
     $newVideoEntry->transferFromXML($entryXml);
     $newVideoEntryXml = $newVideoEntry->saveXML();
     $this->assertTrue($entryXml == $newVideoEntryXml);
 }