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

Details

at line line 17
abstract LoggerInterface getLogger()

Return Value

LoggerInterface

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"

Return Value

string[]

at line line 28
testImplements()

at line line 36
testLogsAtAllLevels($level, $message)

Parameters

$level
$message

at line line 49
provideLevelsAndMessages()

at line line 66
testThrowsOnInvalidLevel()

at line line 72
testContextReplacement()

at line line 81
testObjectCastToString()

at line line 91
testContextCanContainAnything()

at line line 107
testContextExceptionKeyCanBeExceptionOrOtherValues()