-- Tir <[EMAIL PROTECTED]> wrote
(on Monday, 06 October 2008, 02:23 AM -0700):
> 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 because i
> set cookie with PHP native function, not with method of ZF classes. How can
> i set cookies to have no error ocurred?

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

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to