Contao\CoreBundle\Test\EventListener\ResponseExceptionListenerTest::testNonResponseException PHP Method

testNonResponseException() public method

Tests passing a non-response exception.
    public function testNonResponseException()
    {
        $event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new \RuntimeException());
        $listener = new ResponseExceptionListener();
        $listener->onKernelException($event);
        $this->assertFalse($event->hasResponse());
    }