Пример #1
0
 /**
  * @group ZF-5056
  */
 public function testRenderingWithValueAfterValidation()
 {
     // Set element options
     $this->element->setOptions(array('label' => 'Foo', 'value' => 'bar', 'decorators' => array('ViewHelper')));
     // Validate
     $this->element->isValid(null);
     $this->assertEquals(PHP_EOL . '<button name="foo" id="foo" type="button" value="bar">Foo</button>', $this->element->render($this->getView()));
 }