Contao\CoreBundle\Test\Exception\ResponseExceptionTest::testGetResponse PHP Method

testGetResponse() public method

Tests the getResponse() method.
public testGetResponse ( )
    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());
    }