TYPO3 CMS  TYPO3_6-2
IntrospectionTest.php
Go to the documentation of this file.
1 <?php
3 
23 
32  $logRecord = new \TYPO3\CMS\Core\Log\LogRecord('test.core.log', \TYPO3\CMS\Core\Log\LogLevel::DEBUG, 'test');
33  $processor = new \TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor();
34  $logRecord = $processor->processLogRecord($logRecord);
35  $this->assertNotEmpty($logRecord['data']['file'], 'Asserting that file name in debug_backtrace() is not empty');
36  $this->assertGreaterThan(0, $logRecord['data']['line'], 'Asserting that line numer in debug_backtrace() is greater than 0');
37  $this->assertNotEmpty($logRecord['data']['class'], 'Asserting that class in debug_backtrace() is not empty');
38  $this->assertNotEmpty($logRecord['data']['function'], 'Asserting that function in debug_backtrace() is not empty');
39  }
40 
41 }