public function testInvokingWithErrorInProductionSetsResponseToReasonPhrase()
{
$final = new FinalHandler(['env' => 'production']);
$error = new Exception('foo', 400);
$response = $final($this->request, $this->response, $error);
$this->assertEquals($response->getReasonPhrase(), (string) $response->getBody());
}