get('/'); $response->assertSee('This is a renderable exception.'); } protected function getEnvironmentSetUp($app) { $app['config']->set('view.paths', [__DIR__.'/templates']); } } class RenderableException extends Exception { public function render($request) { return new Response('This is a renderable exception.'); } }