‪TYPO3CMS  ‪main
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 ()
 
 introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace ($number)
 
 introspectionProcessorLeavesOneEntryIfGivenNumberOfEntriesFromBacktraceIsGreaterOrEqualNumberOfBacktraceLevels ()
 
 appendFullBacktraceAddsTheFullBacktraceAsStringToTheLog ()
 

Static Public Member Functions

static introspectionProcessorShiftsGivenNumberOfEntriesFromBacktraceDataProvider ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

IntrospectionProcessor &MockObject $processor
 
array $dummyBacktrace
 

Detailed Description

Definition at line 28 of file IntrospectionProcessorTest.php.

Member Function Documentation

◆ appendFullBacktraceAddsTheFullBacktraceAsStringToTheLog()

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

Definition at line 156 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorAddsLastBacktraceItemToLogRecord()

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

Definition at line 70 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorLeavesOneEntryIfGivenNumberOfEntriesFromBacktraceIsGreaterOrEqualNumberOfBacktraceLevels()

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

Definition at line 141 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace()

TYPO3\CMS\Core\Tests\Unit\Log\Processor\IntrospectionProcessorTest::introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace (   $number)

Definition at line 126 of file IntrospectionProcessorTest.php.

◆ introspectionProcessorShiftsGivenNumberOfEntriesFromBacktraceDataProvider()

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

DataProvider for introspectionProcessorShiftsGivenNumberOfEntriesFromBacktrace

Definition at line 115 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 63 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 35 of file IntrospectionProcessorTest.php.

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

◆ $processor

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

Definition at line 30 of file IntrospectionProcessorTest.php.