33 $this->assertFalse(
$test->hasDebugRecords());
34 $this->assertFalse(
$test->hasInfoRecords());
37 $this->assertTrue(
$test->hasInfoRecords());
38 $this->assertTrue(count(
$test->getRecords()) === 3);
52 $this->assertTrue(
$test->hasWarningRecords());
53 $this->assertTrue(
$test->hasDebugRecords());
70 $this->assertTrue(
$test->hasWarningRecords());
71 $this->assertTrue(
$test->hasDebugRecords());
72 $this->assertFalse(
$test->hasInfoRecords());
87 $this->assertTrue(
$test->hasWarningRecords());
88 $this->assertTrue(
$test->hasDebugRecords());
89 $this->assertFalse(
$test->hasInfoRecords());
104 $this->assertTrue(
$test->hasWarningRecords());
105 $this->assertTrue(
$test->hasInfoRecords());
106 $this->assertFalse(
$test->hasDebugRecords());
121 $this->assertFalse(
$test->hasDebugRecords());
122 $this->assertFalse(
$test->hasInfoRecords());
124 $this->assertTrue(
$test->hasInfoRecords());
125 $this->assertTrue(count(
$test->getRecords()) === 3);
161 $this->assertFalse(
$test->hasDebugRecords());
163 $this->assertTrue(
$test->hasDebugRecords());
164 $this->assertTrue(
$test->hasWarningRecords());
177 $this->assertFalse(
$test->hasDebugRecords());
179 $this->assertTrue(
$test->hasDebugRecords());
180 $this->assertTrue(
$test->hasWarningRecords());
192 $this->assertFalse(
$test->hasDebugRecords());
194 $this->assertTrue(
$test->hasDebugRecords());
196 $this->assertTrue(
$test->hasInfoRecords());
208 $this->assertFalse(
$test->hasWarningRecords());
210 $record[
'channel'] =
'othertest';
212 $this->assertTrue(
$test->hasDebugRecords());
213 $this->assertTrue(
$test->hasWarningRecords());
225 $this->assertFalse(
$test->hasWarningRecords());
227 $record[
'channel'] =
'othertest';
229 $this->assertTrue(
$test->hasDebugRecords());
230 $this->assertTrue(
$test->hasWarningRecords());
241 $handler->pushProcessor(
function ($record) {
242 $record[
'extra'][
'foo'] =
true;
247 $this->assertTrue(
$test->hasWarningRecords());
249 $this->assertTrue($records[0][
'extra'][
'foo']);
262 $this->assertFalse(
$test->hasDebugRecords());
263 $this->assertTrue(
$test->hasInfoRecords());
276 $this->assertFalse(
$test->hasDebugRecords());
277 $this->assertTrue(
$test->hasInfoRecords());
testHandleUsesProcessors()
Monolog::handle Monolog::activate
testHandleRestartBufferingAfterReset()
Monolog::handle Monolog::activate Monolog::reset
const DEBUG
Detailed debug information.
const ERROR
Runtime errors.
Buffers all records until a certain level is reached.
testOverrideActivationStrategy()
Monolog::__construct Monolog::activate
Error level based activation strategy.
testHandleWithBadCallbackThrowsException()
Monolog::handle Monolog::activate RuntimeException
getRecord($level=Logger::WARNING, $message='test', $context=array())
testHandleBufferLimit()
Monolog::handle Monolog::activate
testErrorLevelActivationStrategy()
Monolog::__construct Monolog::__construct Monolog::isHandlerActivated
testPsrLevelPassthruOnClose()
Monolog::close
Channel and Error level based monolog activation strategy.
testHandleBuffers()
Monolog::__construct Monolog::handle Monolog::activate
const WARNING
Exceptional occurrences that are not errors.
testHandleWithCallback()
Monolog::handle Monolog::activate
testChannelLevelActivationStrategyWithPsrLevels()
Monolog::__construct Monolog::isHandlerActivated
Create styles array
The data for the language used.
testIsHandlingAlways()
Monolog::isHandling
testHandleRestartBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled()
Monolog::handle Monolog::activate
testErrorLevelActivationStrategyWithPsrLevel()
Monolog::__construct Monolog::__construct Monolog::isHandlerActivated
testChannelLevelActivationStrategy()
Monolog::__construct Monolog::isHandlerActivated
Used for testing purposes.
testHandleStopsBufferingAfterTrigger()
Monolog::handle Monolog::activate
testPassthruOnClose()
Monolog::close
const INFO
Interesting events.