[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

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: add in

[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