/** * @expectedException \RuntimeException */ public function testRunWithoutExceptionHandling() { $app = new Application(); $app->handlers([$app->handler(function () { throw new \RuntimeException(); })]); $app['app.catch_errors'] = false; $app->run(); }