LoggerState
class LoggerState implements TestState
Disables any user configured loggers by pushing a NullHandler during PHPUnit tests.
This is designed specifically for Monolog. If using another PSR-3 compatible logging package, this will not do anything.
Methods
Details
at line 19
setUp(SapphireTest $test)
Called on setup
at line 28
tearDown(SapphireTest $test)
Called on tear down
at line 33
setUpOnce(string $class)
Called once on setup
at line 38
tearDownOnce(string $class)
Called once on tear down