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