public function testConvertNoActivePageFoundException() { $event = new GetResponseForExceptionEvent($this->mockKernel(), new Request(), HttpKernelInterface::MASTER_REQUEST, new NoActivePageFoundException()); $listener = new ExceptionConverterListener(); $listener->onKernelException($event); $exception = $event->getException(); $this->assertInstanceOf('Contao\\CoreBundle\\Exception\\InternalServerErrorHttpException', $exception); $this->assertInstanceOf('Contao\\CoreBundle\\Exception\\NoActivePageFoundException', $exception->getPrevious()); }