Zend\Stratigility\Http\Response::getReasonPhrase PHP Method

getReasonPhrase() public method

public getReasonPhrase ( )
    public function getReasonPhrase()
    {
        return $this->psrResponse->getReasonPhrase();
    }

Usage Example

 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());
 }