/**
  *
  */
 public function testVideoCollection()
 {
     $videoEntity = new VideoEntity();
     $videoEntity->setThumbnailLoc('http://test.com/video.png');
     $videoEntity->setTitle('test');
     $videoEntity->setDescription('test');
     $this->locationEntity->addVideo($videoEntity);
     $this->assertRegExp('/\\<video\\:video\\>/', $this->locationEntity->getXml());
     $this->assertRegExp('/\\<video\\:thumbnail\\_loc\\>http\\:\\/\\/test\\.com\\/video\\.png\\<\\/video\\:thumbnail\\_loc\\>/', $this->locationEntity->getXml());
     $this->assertRegExp('/\\<video\\:title\\>test\\<\\/video\\:title\\>/', $this->locationEntity->getXml());
     $this->assertRegExp('/\\<video\\:description\\>test\\<\\/video\\:description\\>/', $this->locationEntity->getXml());
     $this->assertRegExp('/\\<\\/video\\:video\\>/', $this->locationEntity->getXml());
 }
Ejemplo n.º 2
0
 /**
  *
  */
 public function testDumpPlatform()
 {
     $this->videoEntity->setPlatform(array('code' => 'WEB', 'relationship' => 'allow'));
     $this->assertRegExp('/\\<video\\:platform\\ relationship\\=\\"allow\\"\\>WEB\\<\\/video\\:platform\\>/', $this->videoEntity->getXml());
 }