I'm looking everywhere, but didn't find a working solution!
I use phpunit-Test with phpStorm. In this one of my TestClasses, on one line I have to set cookie-value. And I'm sure this is the main-problem. The error is
PHPUnit_Framework_Error_Warning : Cannot modify header information - headers already sent by (output started at /Applications/MAMP/bin/php/php5.3.6/lib/php/PHPUnit/Util/Printer.php:173)
#0 [internal function]: PHPUnit_Util_ErrorHandler::handleError(2, 'Cannot modify h...', '/Applications/M...', 1046, Array)
#1 /Applications/MAMP/htdocs/yii-1.1.9.r3527/framework/web/CHttpRequest.php(1046): setcookie('_selectedLang', 'en_us', 1340444026, '/', '', false, false)
So I try to find a solution with the help of phpunit forums. And there are a few developers with the same problem. Somewhere I found a solution with the command-line option "--stderr". So in the terminal the same phpunit-Test is running without error and it gave the expected response with all the test-results from the method.
BUT, if I try to set the same option in the Run/Debug Configurations for the MLocaleManagerTest in phpStorm if I try under Command Line Interpreter options: The result is NO TEST => Process finished with exit code 0.
If I try under Test Runner > Test Runner options: there is the same unlike error " Cannot modify header information blablabla".
So what can I do for use the TestClassMethod in phpStorm with the same result like in Terminal-App with the option "--stderr".
I found an other solution with set the function ob_start() in the bootstrap, but this isn't work for Terminal nor phpStorm.
Did someone have the same problems in the past and found a working solution. It would be great to hear about.
I lost so much of time....