LoggerInterfaceTest
class LoggerInterfaceTest extends PHPUnit_Framework_TestCase
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
Methods
LoggerInterface
getLogger()
No description
string[]
getLogs()
This must return the log messages in order with a simple formatting: "
testImplements()
No description
testLogsAtAllLevels($level, $message)
No description
provideLevelsAndMessages()
No description
testThrowsOnInvalidLevel()
No description
testContextReplacement()
No description
testObjectCastToString()
No description
testContextCanContainAnything()
No description
testContextExceptionKeyCanBeExceptionOrOtherValues()
No description
Details
at line line 17
abstract LoggerInterface
getLogger()
at line line 26
abstract string[]
getLogs()
This must return the log messages in order with a simple formatting: "
Example ->error('Foo') would yield "error Foo"