Пример #1
0
 /**
  * @group ZF-2714
  */
 public function testImageElementAttributesPassedWithDecoratorOptionsToViewHelper()
 {
     $element = new ImageElement('foo');
     $element->setValue('foobar')->setAttrib('onClick', 'foo()')->setAttrib('id', 'foo-element')->setView($this->getView());
     $this->decorator->setElement($element)->setOption('class', 'imageclass');
     $image = $this->decorator->render('');
     $this->assertContains('class="imageclass"', $image);
     $this->assertContains('onClick="foo()"', $image);
     $this->assertContains('id="foo-element"', $image);
 }