--TEST-- Test ErrorHandler in case of fatal error --SKIPIF-- --FILE-- setExceptionHandler('print_r'); if (\function_exists('xdebug_disable')) { xdebug_disable(); } bar(); ?> --EXPECTF-- Fatal error: Call to undefined function Symfony\Component\Debug\notexist() in %s on line %d Symfony\Component\Debug\Exception\UndefinedFunctionException Object ( [message:protected] => Attempted to call function "notexist" from namespace "Symfony\Component\Debug". [string:Exception:private] => [code:protected] => 0 [file:protected] => %s [line:protected] => %d [trace:Exception:private] => Array ( [0] => Array ( %A [function] => Symfony\Component\Debug\foo %A [args] => Array ( ) ) [1] => Array ( %A [function] => Symfony\Component\Debug\bar %A [args] => Array ( ) ) %A ) [previous:Exception:private] => [severity:protected] => 1 )