ConsoleLoggerTest
extends TestCase
in package
Console logger test.
Tags
Table of Contents
Properties
Methods
- getLogger() : LoggerInterface
- getLogs() : array<string|int, string>
- Return the log messages in order.
- provideLevelsAndMessages() : mixed
- provideOutputMappingParams() : mixed
- testContextCanContainAnything() : mixed
- testContextExceptionKeyCanBeExceptionOrOtherValues() : mixed
- testContextReplacement() : mixed
- testHasErrored() : mixed
- testImplements() : mixed
- testLogsAtAllLevels() : mixed
- testObjectCastToString() : mixed
- testOutputMapping() : mixed
- testThrowsOnInvalidLevel() : mixed
Properties
$output
protected
DummyOutput
$output
Methods
getLogger()
public
getLogger() : LoggerInterface
Return values
LoggerInterfacegetLogs()
Return the log messages in order.
public
getLogs() : array<string|int, string>
Return values
array<string|int, string>provideLevelsAndMessages()
public
provideLevelsAndMessages() : mixed
provideOutputMappingParams()
public
provideOutputMappingParams() : mixed
testContextCanContainAnything()
public
testContextCanContainAnything() : mixed
testContextExceptionKeyCanBeExceptionOrOtherValues()
public
testContextExceptionKeyCanBeExceptionOrOtherValues() : mixed
testContextReplacement()
public
testContextReplacement() : mixed
testHasErrored()
public
testHasErrored() : mixed
testImplements()
public
testImplements() : mixed
testLogsAtAllLevels()
public
testLogsAtAllLevels(mixed $level, mixed $message) : mixed
Parameters
- $level : mixed
- $message : mixed
Tags
testObjectCastToString()
public
testObjectCastToString() : mixed
testOutputMapping()
public
testOutputMapping(mixed $logLevel, mixed $outputVerbosity, mixed $isOutput[, mixed $addVerbosityLevelMap = array() ]) : mixed
Parameters
- $logLevel : mixed
- $outputVerbosity : mixed
- $isOutput : mixed
- $addVerbosityLevelMap : mixed = array()
Tags
testThrowsOnInvalidLevel()
public
testThrowsOnInvalidLevel() : mixed