I'm new to both TDD and phpunit.
I'm testing code that forks based on it's execution method:
if (PHP_SAPI!='cli') {
header('HTTP/1.1 '.$statusCode);
}
I want to get as much code coverage as possible, but I can't seem to test this part (because phpunit is testing via the command line interface).
Is there a way around this? Or another way to test this part?
I thought about trying to curl or something, but where the tests run will be relative to the system of the user testing it.