‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest:

Public Member Functions

 introspectionProcessorAddsLastBacktraceItemToLogRecord ()
 
 introspectionProcessorShiftsLogRelatedFunctionsFromBacktrace ()
 
 introspectionProcessorShiftsGivenNumberOfEntriesFromBacktraceDataProvider ()
 
 introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace ($number)
 
 introspectionProcessorLeavesOneEntryIfGivenNumberOfEntriesFromBacktraceIsGreaterOrEqualNumberOfBacktraceLevels ()
 
 appendFullBacktraceAddsTheFullBacktraceAsStringToTheLog ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

MockObject IntrospectionProcessor $processor
 
array $dummyBacktrace
 

Detailed Description

Test case

Definition at line 29 of file IntrospectionProcessorTest.php.

Member Function Documentation

◆ appendFullBacktraceAddsTheFullBacktraceAsStringToTheLog()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::appendFullBacktraceAddsTheFullBacktraceAsStringToTheLog ( )
Test:

Definition at line 172 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorAddsLastBacktraceItemToLogRecord()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::introspectionProcessorAddsLastBacktraceItemToLogRecord ( )
Test:

Definition at line 78 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorLeavesOneEntryIfGivenNumberOfEntriesFromBacktraceIsGreaterOrEqualNumberOfBacktraceLevels()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::introspectionProcessorLeavesOneEntryIfGivenNumberOfEntriesFromBacktraceIsGreaterOrEqualNumberOfBacktraceLevels ( )
Test:

Definition at line 155 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace (   $number)
Test:
‪@dataProvider introspectionProcessorShiftsGivenNumberOfEntriesFromBacktraceDataProvider

Definition at line 138 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorShiftsGivenNumberOfEntriesFromBacktraceDataProvider()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::introspectionProcessorShiftsGivenNumberOfEntriesFromBacktraceDataProvider ( )

DataProvider for introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace

Definition at line 125 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorShiftsLogRelatedFunctionsFromBacktrace()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::introspectionProcessorShiftsLogRelatedFunctionsFromBacktrace ( )

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::setUp ( )
protected

Sets up this testcase

Definition at line 66 of file IntrospectionProcessorTest.php.

Member Data Documentation

◆ $dummyBacktrace

array TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::$dummyBacktrace
protected
Initial value:
= [
[
'file' => '/foo/filename1.php',
'line' => 1,
'class' => 'class1',
'function' => 'function1',
],
[
'file' => '/foo/filename2.php',
'line' => 2,
'class' => 'class2',
'function' => 'function2',
],
[
'class' => 'class3',
'function' => 'function3',
],
[
'file' => '/foo/filename4.php',
'line' => 4,
'class' => 'class4',
'function' => 'function4',
],
]

A dummy result for the debug_backtrace function

Definition at line 38 of file IntrospectionProcessorTest.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest\introspectionProcessorShiftsLogRelatedFunctionsFromBacktrace().

◆ $processor

MockObject IntrospectionProcessor TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::$processor
protected

Definition at line 33 of file IntrospectionProcessorTest.php.