title: Laravel 4 send headers and PhpUnit testing
body: <p>I'm working in a Laravel 4 project having myself forced to include custom headers to the view. It works without problems. But when I try to check my code with PhpUnit the program complains for "Headers already sent..." issue.</p>
  
  <p>So, I though the answer was to call the Response object from the controller (or the newly created view) to proper include the headers in laravel's way but can't find a way to do so. My other workaround was to follow the post: <a href="https://stackoverflow.com/questions/13875761/phpunit-output-with-header-exceptions-stderr-no-result">PHPUnit output with header exceptions (--stderr no result)</a> and include the <code>@runInSeparateProcess</code> PhpUnit command but this throws an exception for duplicating LARAVEL_START constant.</p>
  
  <p>Have you guys found a clean way to achieve this?. I can't go with the stderr redirection fix as I'm trying to run all my test from netbeans IDE and I think this should be a framework's concept I'm missing here.</p>
  
  <p>Thank you all</p>