Documentation

LoggerTest extends TestCase
in package

Tags
author

Kévin Dunglas dunglas@gmail.com

author

Jordi Boggiano j.boggiano@seld.be

Table of Contents

$logger  : LoggerInterface
$tmpFile  : string
assertLogsMatch()  : mixed
getLogs()  : array<string|int, string>
Return the log messages in order.
provideLevelsAndMessages()  : mixed
testContextCanContainAnything()  : mixed
testContextExceptionKeyCanBeExceptionOrOtherValues()  : mixed
testContextReplacement()  : mixed
testFormatter()  : mixed
testImplements()  : mixed
testInvalidOutput()  : mixed
testLogLevelDisabled()  : mixed
testLogsAtAllLevels()  : mixed
testObjectCastToString()  : mixed
testThrowsOnInvalidLevel()  : mixed
testThrowsOnInvalidMinLevel()  : mixed
setUp()  : mixed
tearDown()  : mixed

Properties

Methods

assertLogsMatch()

public static assertLogsMatch(array<string|int, mixed> $expected, array<string|int, mixed> $given) : mixed
Parameters
$expected : array<string|int, mixed>
$given : array<string|int, mixed>
Return values
mixed

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

testContextCanContainAnything()

public testContextCanContainAnything() : mixed
Return values
mixed

testContextExceptionKeyCanBeExceptionOrOtherValues()

public testContextExceptionKeyCanBeExceptionOrOtherValues() : mixed
Return values
mixed

testContextReplacement()

public testContextReplacement() : mixed
Return values
mixed

testFormatter()

public testFormatter() : mixed
Return values
mixed

testImplements()

public testImplements() : mixed
Return values
mixed

testInvalidOutput()

public testInvalidOutput() : mixed
Return values
mixed

testLogLevelDisabled()

public testLogLevelDisabled() : mixed
Return values
mixed

testLogsAtAllLevels()

public testLogsAtAllLevels(mixed $level, mixed $message) : mixed
Parameters
$level : mixed
$message : mixed
Tags
dataProvider

provideLevelsAndMessages

Return values
mixed

testObjectCastToString()

public testObjectCastToString() : mixed
Return values
mixed

testThrowsOnInvalidLevel()

public testThrowsOnInvalidLevel() : mixed
Return values
mixed

testThrowsOnInvalidMinLevel()

public testThrowsOnInvalidMinLevel() : mixed
Return values
mixed

setUp()

protected setUp() : mixed
Return values
mixed

tearDown()

protected tearDown() : mixed
Return values
mixed

Search results