public function testMakeHtmlFlash() { $htmlFlash = $this->helper->__invoke('/path/to/flash.swf'); $objectStartElement = '<object data="/path/to/flash.swf" type="application/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); }