I\'m trying to use PHPunit to test a class that outputs some custom headers.
The problem is that on my machine this:
I had a more radical solution, in order to use $_SESSION inside my tested/included files.
I edited one of the PHPUnit files at ../PHPUnit/Utils/Printer.php to have a "session_start();" before the command "print $buffer".
It worked for me like a charm. But I think "joonty" user's solution is the best of all up to now.