Archive

April, 2011Archive for

PHPUnit & Symfony functional test

April 11, 2011 admin No comments
not ok 4 - last request threw an uncaught exception RuntimeException: PHP sent a warning error at C:\jenkins\workspace\ris\db\mssql\os\win\src\apps\frontend\modules\img\actions\actions.class.php line 56 (Cannot modify header information - headers already sent by (output started at C:\Programme\PHP\PEAR\PHPUnit\Util\Printer.php:173))
#     Failed test (.\lib\vendor\symfony\lib\test\sfTestFunctionalBase.class.php at line 541)

If you do unit testing and encounter “headers already sent” errors in “Printer” on line 173, add “–stderr” to the command call. PHPUnit will then output everything to stderr and cease throwing ErrorExceptions.

Categories: Troubleshooting Tags: