Why should we limit use of PHPUnit to test the features we built only? Some failures are often due to server side configuration errors in php.ini file. My effort here is to ensure that the server always runs under your specific consideration.
The delete() function exists in PHP Manual, but it does not exist to serve its desired purpose.
The PHP’s header() feature is an excellent tool to debug with cleanly readable output.