public function testErrorResponsePreservesResponseReasonPhraseIfStatusCodeMatchesExceptionCode() { $this->response = $this->response->withStatus(500, 'It broke!'); $response = call_user_func($this->final, $this->request, $this->response, new \Exception('foo', 500)); $this->assertSame($this->response->getReasonPhrase(), $response->getReasonPhrase()); }