2 Test rethrowing in custom exception handler
6 namespace Symfony\Component\Debug;
9 while (!file_exists($vendor.'/vendor')) {
10 $vendor = dirname($vendor);
12 require $vendor.'/vendor/autoload.php';
15 class TestLogger extends \Psr\Log\AbstractLogger
17 public function log($level, $message, array $context = array())
24 set_exception_handler(function ($e) { echo 123; throw $e; });
25 ErrorHandler::register()->setDefaultLogger(new TestLogger());
26 ini_set('display_errors', 1);
28 throw new \Exception('foo');
31 Uncaught Exception: foo
33 Fatal error: Uncaught %s:25