I'write some unit testing for a couple of models using Zend_Session as data
container. When I run these tests into Zend Studio everything goes fine, but
when I move to a different server in which I just have terminal I have
errors like these:

Computer-di-Fabio:Admin fabionapoleoni$ phpunit DisabledDatesTest.php 
PHPUnit 3.3.15 by Sebastian Bergmann.

EE

Time: 0 seconds

There were 2 errors:

1) testEnableAndDisableWithoutFilter(Model_Admin_DisabledDatesTest)
Zend_Session_Exception: Session must be started before any output has been
sent to the browser; output started in
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Util/Printer.php/168
/ZF/ZendFramework-1.8.3/library/Zend/Session.php:419
/ZF/ZendFramework-1.8.3/library/Zend/Session/Namespace.php:124
/ZF/trunk/application/modules/admin/models/Filter.php:14
/ZF/trunk/test/Model/Admin/DisabledDatesTest.php:36

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.

What should I do to fix them?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Unit-testing-and-Zend_Session-output-error-tp24184089p24184089.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to