get Response message object
public getResponse ( ) : Psr\Http\Message\ResponseInterface | ||
return | Psr\Http\Message\ResponseInterface |
public function testCtorDefaults() { $response = new Response(); $response = $response->withStatus(404, 'File not found'); $e = new ResponseException($response); $this->assertEquals(404, $e->getCode()); $this->assertEquals('HTTP status code 404 (File not found)', $e->getMessage()); $this->assertSame($response, $e->getResponse()); }