LoggerMiddlewareTest
extends TestCase
in package
Uses
MockeryPHPUnitIntegration
Table of Contents
- $formatter : Formatter|MockInterface
- $logger : LoggerInterface
- $middleware : LoggerMiddleware
- $mockNext : callable
- tearDown() : void
- testEmptyReturnValuesIsPassedAsNull() : mixed
- testFailuresMessagesAreLoggedWithException() : mixed
- testNextCallableIsInvoked() : mixed
- testSuccessfulEventsLogWithCommandAndReturnValue() : mixed
- setUp() : void
Properties
$formatter
private
Formatter|MockInterface
$formatter
$logger
private
LoggerInterface
$logger
$middleware
private
LoggerMiddleware
$middleware
$mockNext
private
callable
$mockNext
Methods
tearDown()
public
tearDown() : void
Return values
void —testEmptyReturnValuesIsPassedAsNull()
public
testEmptyReturnValuesIsPassedAsNull() : mixed
Return values
mixed —testFailuresMessagesAreLoggedWithException()
public
testFailuresMessagesAreLoggedWithException() : mixed
Return values
mixed —testNextCallableIsInvoked()
public
testNextCallableIsInvoked() : mixed
Return values
mixed —testSuccessfulEventsLogWithCommandAndReturnValue()
public
testSuccessfulEventsLogWithCommandAndReturnValue() : mixed
Return values
mixed —setUp()
protected
setUp() : void