getResponse() публичный Метод

Returns the response object.
public getResponse ( ) : Response
Результат Symfony\Component\HttpFoundation\Response
Пример #1
0
 /**
  * Tests the getResponse() method.
  */
 public function testGetResponse()
 {
     $exception = new ResponseException(new Response('Hello world'));
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $exception->getResponse());
     $this->assertEquals(200, $exception->getResponse()->getStatusCode());
     $this->assertEquals('Hello world', $exception->getResponse()->getContent());
 }