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