/** * @param Throwable $e * * @return ErrorResponse */ public function render(Throwable $e) : ErrorResponse { if ($this->app->isLocal()) { return $this->whoops->render($e); } else { return $this->formatter->render($e); } }
public function test_it_renders_a_console_exception() { $this->formatter->render(new Exception('Exception message')); }