Error handler for your PHPUnit tests
PHPUnit silently hides execution errors, which sometimes makes it difficult to track what happened. This error handler exposes the basic error information:
set_error_handler(function($e, $m, $f, $l) {
echo "
ERROR $e: $m at $l in $f";
});