[fw-general] Wrong work of custom Zend_Form_Decorator

2009-03-16 Thread Tir
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

[fw-general] Testing of controller's action with redirect via Zend_Test

2009-01-22 Thread Tir
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

Re: [fw-general] Zend_Test + setcookie() = error

2008-10-10 Thread Tir
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

[fw-general] Zend_Test + setcookie() = error

2008-10-08 Thread Tir
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