/** * */ public function setUp() { $this->videoEntity = new VideoEntity(); $this->videoEntity->setThumbnailLoc('http://test.com/video.png'); $this->videoEntity->setTitle('test'); $this->videoEntity->setDescription('test'); }
/** * */ 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()); }