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