view = new Zend_View(); $this->helper = new Zend_View_Helper_FormTextarea(); $this->helper->setView($this->view); } /** * ZF-1666 */ public function testCanDisableElement() { $html = $this->helper->formTextarea(array( 'name' => 'foo', 'value' => 'bar', 'attribs' => array('disable' => true) )); $this->assertRegexp('/]*?(disabled="disabled")/', $html); } /** * ZF-1666 */ public function testDisablingElementDoesNotRenderHiddenElements() { $html = $this->helper->formTextarea(array( 'name' => 'foo', 'value' => 'bar', 'attribs' => array('disable' => true) )); $this->assertNotRegexp('/]*?(type="hidden")/', $html); } } // Call Zend_View_Helper_FormTextareaTest::main() if this source file is executed directly. if (PHPUnit_MAIN_METHOD == "Zend_View_Helper_FormTextareaTest::main") { Zend_View_Helper_FormTextareaTest::main(); }