TYPO3
7.6
|
Public Member Functions | |
getLogger () | |
getLogs () | |
testImplements () | |
testLogsAtAllLevels ($level, $message) | |
provideLevelsAndMessages () | |
testThrowsOnInvalidLevel () | |
testContextReplacement () | |
testObjectCastToString () | |
testContextCanContainAnything () | |
testContextExceptionKeyCanBeExceptionOrOtherValues () | |
Provides a base test class for ensuring compliance with the LoggerInterface.
Implementors can extend the class and implement abstract methods to run this as part of their test suite.
Definition at line 14 of file LoggerInterfaceTest.php.
|
abstract |
Referenced by LoggerInterfaceTest\testImplements(), and LoggerInterfaceTest\testLogsAtAllLevels().
|
abstract |
This must return the log messages in order.
The simple formatting of the messages is: "<LOG LEVEL> <MESSAGE>".
Example ->error('Foo') would yield "error Foo".
provideLevelsAndMessages | ( | ) |
Definition at line 53 of file LoggerInterfaceTest.php.
References LogLevel\ALERT, LogLevel\CRITICAL, LogLevel\DEBUG, LogLevel\EMERGENCY, LogLevel\ERROR, LogLevel\INFO, LogLevel\NOTICE, and LogLevel\WARNING.
testContextCanContainAnything | ( | ) |
Definition at line 98 of file LoggerInterfaceTest.php.
testContextExceptionKeyCanBeExceptionOrOtherValues | ( | ) |
Definition at line 117 of file LoggerInterfaceTest.php.
testContextReplacement | ( | ) |
Definition at line 76 of file LoggerInterfaceTest.php.
testImplements | ( | ) |
Definition at line 32 of file LoggerInterfaceTest.php.
References LoggerInterfaceTest\getLogger().
testLogsAtAllLevels | ( | $level, | |
$message | |||
) |
provideLevelsAndMessages
Definition at line 40 of file LoggerInterfaceTest.php.
References LoggerInterfaceTest\getLogger().
testObjectCastToString | ( | ) |
Definition at line 85 of file LoggerInterfaceTest.php.
testThrowsOnInvalidLevel | ( | ) |
Definition at line 70 of file LoggerInterfaceTest.php.