Contao\CoreBundle\Test\EventListener\PrettyErrorScreenListenerTest::testUnknownHttpException PHP Method

testUnknownHttpException() public method

Tests rendering an unknown HTTP exception.
    public function testUnknownHttpException()
    {
        $event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new ConflictHttpException());
        $this->listener->onKernelException($event);
        $this->assertTrue($event->hasResponse());
        $response = $event->getResponse();
        $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
        $this->assertEquals(409, $response->getStatusCode());
    }