I try to make a decorator for Zend_Form that will wrap a form in HTML-table:
$form = $this->getElement();
$form->setDecorators(array(
new Zend_Form_Decorator_FormElements(),
new Zend_Form_Decorator_HtmlTag(array('tag' => 'table')),
new Zend_Form_Decorator_Form()
));
$for
Hi! I'm trying to test my controller with redirect in one of its actions.
Redirect to index action of index controller was realized via gotoUrl()
method of Zend_Controller_Action_Helper_Redirector:
$this->_helper->redirector->gotoUrl('/'). On the web-server all works
ideally. But when i run test w
Matthew Weier O'Phinney-3 wrote:
>
> Actually... we don't have a way in the Response object yet for setting
> cookies; if we had one, that would make testing easier. I've added a
> ticket for you to track this:
>
> http://framework.zend.com/issues/browse/ZF-4520
>
It's really good idea: ad
Hi, all!
In one of my plugins i set cookie in preDispatch method with the setcookie
function. And when i try to test my controllers with descendant of the
Zend_Test_PHPUnit_ControllerTestCase class i receive an error "Cannot modify
header information - headers already sent by". I think it occures