ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Provides a base test class for ensuring compliance with the LoggerInterface. More...
Public Member Functions | |
getLogger () | |
getLogs () | |
This must return the log messages in order. More... | |
testImplements () | |
testLogsAtAllLevels ($level, $message) | |
provideLevelsAndMessages More... | |
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 Psr\Log\Test\LoggerInterfaceTest\testContextCanContainAnything(), Psr\Log\Test\LoggerInterfaceTest\testContextExceptionKeyCanBeExceptionOrOtherValues(), Psr\Log\Test\LoggerInterfaceTest\testContextReplacement(), Psr\Log\Test\LoggerInterfaceTest\testImplements(), Psr\Log\Test\LoggerInterfaceTest\testLogsAtAllLevels(), Psr\Log\Test\LoggerInterfaceTest\testObjectCastToString(), and Psr\Log\Test\LoggerInterfaceTest\testThrowsOnInvalidLevel().
|
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".
Referenced by Psr\Log\Test\LoggerInterfaceTest\testContextCanContainAnything(), Psr\Log\Test\LoggerInterfaceTest\testContextExceptionKeyCanBeExceptionOrOtherValues(), Psr\Log\Test\LoggerInterfaceTest\testContextReplacement(), Psr\Log\Test\LoggerInterfaceTest\testLogsAtAllLevels(), and Psr\Log\Test\LoggerInterfaceTest\testObjectCastToString().
Psr\Log\Test\LoggerInterfaceTest::provideLevelsAndMessages | ( | ) |
Definition at line 53 of file LoggerInterfaceTest.php.
References Psr\Log\LogLevel\ALERT, array, Psr\Log\LogLevel\CRITICAL, Psr\Log\LogLevel\DEBUG, Psr\Log\LogLevel\EMERGENCY, Psr\Log\LogLevel\ERROR, Psr\Log\LogLevel\INFO, Psr\Log\LogLevel\NOTICE, and Psr\Log\LogLevel\WARNING.
Psr\Log\Test\LoggerInterfaceTest::testContextCanContainAnything | ( | ) |
Definition at line 102 of file LoggerInterfaceTest.php.
References array, Psr\Log\Test\LoggerInterfaceTest\getLogger(), and Psr\Log\Test\LoggerInterfaceTest\getLogs().
Psr\Log\Test\LoggerInterfaceTest::testContextExceptionKeyCanBeExceptionOrOtherValues | ( | ) |
Definition at line 121 of file LoggerInterfaceTest.php.
References array, Psr\Log\Test\LoggerInterfaceTest\getLogger(), and Psr\Log\Test\LoggerInterfaceTest\getLogs().
Psr\Log\Test\LoggerInterfaceTest::testContextReplacement | ( | ) |
Definition at line 76 of file LoggerInterfaceTest.php.
References array, Psr\Log\Test\LoggerInterfaceTest\getLogger(), and Psr\Log\Test\LoggerInterfaceTest\getLogs().
Psr\Log\Test\LoggerInterfaceTest::testImplements | ( | ) |
Definition at line 32 of file LoggerInterfaceTest.php.
References Psr\Log\Test\LoggerInterfaceTest\getLogger().
Psr\Log\Test\LoggerInterfaceTest::testLogsAtAllLevels | ( | $level, | |
$message | |||
) |
provideLevelsAndMessages
Definition at line 40 of file LoggerInterfaceTest.php.
References $message, array, Psr\Log\Test\LoggerInterfaceTest\getLogger(), and Psr\Log\Test\LoggerInterfaceTest\getLogs().
Psr\Log\Test\LoggerInterfaceTest::testObjectCastToString | ( | ) |
Definition at line 85 of file LoggerInterfaceTest.php.
References array, Psr\Log\Test\LoggerInterfaceTest\getLogger(), and Psr\Log\Test\LoggerInterfaceTest\getLogs().
Psr\Log\Test\LoggerInterfaceTest::testThrowsOnInvalidLevel | ( | ) |
Definition at line 70 of file LoggerInterfaceTest.php.
References Psr\Log\Test\LoggerInterfaceTest\getLogger().