コード例 #1
0
 /**
  *
  */
 public function testImageCollection()
 {
     $imageEntity = new ImageEntity();
     $imageEntity->setLocation('http://test.com/');
     $this->locationEntity->addImage($imageEntity);
     $this->assertRegExp('/\\<image\\:image\\>\\<image\\:loc\\>http\\:\\/\\/test\\.com\\/\\<\\/image\\:loc\\>\\<\\/image\\:image\\>/', $this->locationEntity->getXml());
 }
コード例 #2
0
 /**
  *
  */
 public function testLicense()
 {
     $this->imageEntity->setLicense('License');
     $this->assertRegExp('/\\<image\\:license\\>License\\<\\/image\\:license\\>/', $this->imageEntity->getXml());
 }