onKernelException() public method

public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
 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());
 }