예제 #1
0
 /**
  * @group ZF-5056
  */
 public function testValidateAlwaysReturnsTrue()
 {
     $this->element->setValue('foo');
     $this->assertTrue($this->element->isValid('bar'));
 }
예제 #2
0
 /**
  * @group ZF-5056
  */
 public function testRenderingButtonWithValue()
 {
     // Create element
     require_once 'Zend/Form/Element/Button.php';
     $element = new Zend_Form_Element_Button('foo');
     $element->setValue('bar');
     $element->setLabel('baz');
     $element->setDecorators(array('ViewHelper'));
     // Test
     $this->assertEquals(PHP_EOL . '<button name="foo" id="foo" type="button" value="bar">baz</button>', $element->render($this->getView()));
 }