GuzzleHttp\Psr7\Response::getReasonPhrase PHP Method

getReasonPhrase() public method

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

Usage Example

 public function testCanConstructWithReason()
 {
     $r = new Response(200, [], null, '1.1', 'bar');
     $this->assertSame('bar', $r->getReasonPhrase());
     $r = new Response(200, [], null, '1.1', '0');
     $this->assertSame('0', $r->getReasonPhrase(), 'Falsey reason works');
 }
All Usage Examples Of GuzzleHttp\Psr7\Response::getReasonPhrase