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