I am trying to write a test case for a class that is managing headers for my application. Among the headers it sends are http status headers. I am using headers_list() to see which headers would be send, were I to send headers now. The problem with headers_list() is that it does not include the http status header (although this seems to be undocumented on php.net). So, I cannot find a way to determine what http status would be sent. Even if I do send the headers (which I m trying not to do, so I can test a bunch of different things all in one go), the status does not show up in headers_list(). Any ideas?
P.S. I realize I could do this by requesting the page and examining the response, but that makes it very difficult to keep tests at a unit level, so I m trying to avoid it.