PHPConsoleHandlerTest
extends TestCase
in package
Tags
Table of Contents
- $connector : Connector|PHPUnit_Framework_MockObject_MockObject
- $debugDispatcher : Debug|PHPUnit_Framework_MockObject_MockObject
- $errorDispatcher : Errors|PHPUnit_Framework_MockObject_MockObject
- provideConnectorMethodsOptionsSets() : mixed
- provideDumperOptionsValues() : mixed
- testDebug() : mixed
- testDebugContextInMessage() : mixed
- testDebugTags() : mixed
- testDumperOptions() : mixed
- testError() : mixed
- testException() : mixed
- testInitWithCustomConnector() : mixed
- testInitWithDefaultConnector() : mixed
- testOptionCallsConnectorMethod() : mixed
- testOptionClassesPartialsTraceIgnore() : mixed
- testOptionDebugTagsKeysInContext() : mixed
- testOptionDetectDumpTraceAndSource() : mixed
- testOptionEnabled() : mixed
- testOptionUseOwnErrorsAndExceptionsHandler() : mixed
- testWrongOptionsThrowsException() : mixed
- getHandlerDefaultOption() : mixed
- getIdentityFormatter() : FormatterInterface
- getMultipleRecords() : array<string|int, mixed>
- getRecord() : array<string|int, mixed>
- initConnectorMock() : mixed
- initDebugDispatcherMock() : mixed
- initErrorDispatcherMock() : mixed
- initLogger() : mixed
- setUp() : mixed
Properties
$connector
protected
Connector|PHPUnit_Framework_MockObject_MockObject
$connector
$debugDispatcher
protected
Debug|PHPUnit_Framework_MockObject_MockObject
$debugDispatcher
$errorDispatcher
protected
Errors|PHPUnit_Framework_MockObject_MockObject
$errorDispatcher
Methods
provideConnectorMethodsOptionsSets()
public
static provideConnectorMethodsOptionsSets() : mixed
Return values
mixed —provideDumperOptionsValues()
public
static provideDumperOptionsValues() : mixed
Return values
mixed —testDebug()
public
testDebug() : mixed
Return values
mixed —testDebugContextInMessage()
public
testDebugContextInMessage() : mixed
Return values
mixed —testDebugTags()
public
testDebugTags([mixed $tagsContextKeys = null ]) : mixed
Parameters
- $tagsContextKeys : mixed = null
Return values
mixed —testDumperOptions()
public
testDumperOptions(mixed $option, mixed $dumperProperty, mixed $value) : mixed
Parameters
- $option : mixed
- $dumperProperty : mixed
- $value : mixed
Tags
Return values
mixed —testError()
public
testError([mixed $classesPartialsTraceIgnore = null ]) : mixed
Parameters
- $classesPartialsTraceIgnore : mixed = null
Return values
mixed —testException()
public
testException() : mixed
Return values
mixed —testInitWithCustomConnector()
public
testInitWithCustomConnector() : mixed
Return values
mixed —testInitWithDefaultConnector()
public
testInitWithDefaultConnector() : mixed
Return values
mixed —testOptionCallsConnectorMethod()
public
testOptionCallsConnectorMethod(mixed $option, mixed $method, mixed $value[, mixed $isArgument = true ]) : mixed
Parameters
- $option : mixed
- $method : mixed
- $value : mixed
- $isArgument : mixed = true
Tags
Return values
mixed —testOptionClassesPartialsTraceIgnore()
public
testOptionClassesPartialsTraceIgnore() : mixed
Return values
mixed —testOptionDebugTagsKeysInContext()
public
testOptionDebugTagsKeysInContext() : mixed
Return values
mixed —testOptionDetectDumpTraceAndSource()
public
testOptionDetectDumpTraceAndSource() : mixed
Return values
mixed —testOptionEnabled()
public
testOptionEnabled() : mixed
Return values
mixed —testOptionUseOwnErrorsAndExceptionsHandler()
public
testOptionUseOwnErrorsAndExceptionsHandler() : mixed
Return values
mixed —testWrongOptionsThrowsException()
public
testWrongOptionsThrowsException() : mixed
Tags
Return values
mixed —getHandlerDefaultOption()
protected
getHandlerDefaultOption(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —getIdentityFormatter()
protected
getIdentityFormatter() : FormatterInterface
Return values
FormatterInterface —getMultipleRecords()
protected
getMultipleRecords() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRecord()
protected
getRecord([mixed $level = Logger::WARNING ][, mixed $message = 'test' ][, mixed $context = array() ]) : array<string|int, mixed>
Parameters
- $level : mixed = Logger::WARNING
- $message : mixed = 'test'
- $context : mixed = array()
Return values
array<string|int, mixed> —Record
initConnectorMock()
protected
initConnectorMock() : mixed
Return values
mixed —initDebugDispatcherMock()
protected
initDebugDispatcherMock(Connector $connector) : mixed
Parameters
- $connector : Connector
Return values
mixed —initErrorDispatcherMock()
protected
initErrorDispatcherMock(Connector $connector) : mixed
Parameters
- $connector : Connector
Return values
mixed —initLogger()
protected
initLogger([mixed $handlerOptions = array() ][, mixed $level = Logger::DEBUG ]) : mixed
Parameters
- $handlerOptions : mixed = array()
- $level : mixed = Logger::DEBUG
Return values
mixed —setUp()
protected
setUp() : mixed