TYPO3 CMS  TYPO3_6-2
WebProcessorTest.php
Go to the documentation of this file.
1 <?php
3 
24 
29  $environmentVariables = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('_ARRAY');
30  $logRecord = new \TYPO3\CMS\Core\Log\LogRecord('test.core.log', \TYPO3\CMS\Core\Log\LogLevel::DEBUG, 'test');
31  $processor = new \TYPO3\CMS\Core\Log\Processor\WebProcessor();
32  $logRecord = $processor->processLogRecord($logRecord);
33  foreach ($environmentVariables as $key => $value) {
34  $this->assertEquals($value, $logRecord['data'][$key]);
35  }
36  }
37 
38 }