Contao\CoreBundle\Test\EventListener\ExceptionConverterListenerTest::testConvertUnknownException PHP Method

testConvertUnknownException() public method

Tests converting an unknown exception.
    public function testConvertUnknownException()
    {
        $event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new \RuntimeException());
        $listener = new ExceptionConverterListener();
        $listener->onKernelException($event);
        $exception = $event->getException();
        $this->assertInstanceOf('RuntimeException', $exception);
    }