I\'m trying to use PHPunit to test a class that outputs some custom headers.
The problem is that on my machine this:
As an aside: For me headers_list() kept returning 0 elements. I noticed @titel's comment on the question and figured it deserves special mention here:
Just wanted to cover this if there are some other people interested in this as well.
headers_list()doesn't work while running PHPunit (which uses PHP CLI) butxdebug_get_headers()works instead.
HTH