Example #1
0
 public function testMakeHtmlFlash()
 {
     $htmlFlash = $this->helper->__invoke('/path/to/flash.swf');
     $objectStartElement = '<object data="&#x2F;path&#x2F;to&#x2F;flash.swf" type="application&#x2F;x-shockwave-flash">';
     $this->assertContains($objectStartElement, $htmlFlash);
     $this->assertContains('</object>', $htmlFlash);
 }
 public function render()
 {
     $zendElement = new HtmlFlash();
     $zendElement->setView($this->view);
     return $zendElement((string) $this->object->getPublicUrl($this->urlType), $this->attributes);
 }