eZ\Bundle\EzPublishCoreBundle\Tests\EventListener\ExceptionListenerTest::testUntouchedException PHP Method

testUntouchedException() public method

    public function testUntouchedException()
    {
        $exception = new \RuntimeException('foo');
        $event = $this->generateExceptionEvent($exception);
        $this->translator->expects($this->never())->method('trans');
        $this->listener->onKernelException($event);
        self::assertSame($exception, $event->getException());
    }