public function handleExceptionDoesNotLogInformationAboutTheExceptionInTheSystemLogIfLogExceptionWasTurnedOff()
{
$options = ['defaultRenderingOptions' => ['renderTechnicalDetails' => true, 'logException' => true], 'renderingGroups' => ['notFoundExceptions' => ['matchingStatusCodes' => [404], 'options' => ['logException' => false, 'templatePathAndFilename' => 'resource://Neos.Flow/Private/Templates/Error/Default.html', 'variables' => ['errorDescription' => 'Sorry, the page you requested was not found.']]]]];
/** @var Exception|\PHPUnit_Framework_MockObject_MockObject $exception */
$exception = new NoMatchingRouteException();
/** @var SystemLoggerInterface|\PHPUnit_Framework_MockObject_MockObject $mockSystemLogger */
$mockSystemLogger = $this->getMockBuilder(SystemLoggerInterface::class)->getMock();
$mockSystemLogger->expects($this->never())->method('logException');
$exceptionHandler = $this->getMockForAbstractClass(AbstractExceptionHandler::class, [], '', false, true, true, ['echoExceptionCli']);
/** @var AbstractExceptionHandler $exceptionHandler */
$exceptionHandler->setOptions($options);
$exceptionHandler->injectSystemLogger($mockSystemLogger);
$exceptionHandler->handleException($exception);
}