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());
An exception for terminatinating execution or to throw for unit testing.
testErrorLevelActivationStrategy()
@covers Monolog\Handler\FingersCrossedHandler::__construct @covers Monolog\Handler\FingersCrossed\Err...
testHandleBuffers()
@covers Monolog\Handler\FingersCrossedHandler::__construct @covers Monolog\Handler\FingersCrossedHand...
testPassthruOnClose()
@covers Monolog\Handler\FingersCrossedHandler::close
testHandleRestartBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
testOverrideActivationStrategy()
@covers Monolog\Handler\FingersCrossedHandler::__construct @covers Monolog\Handler\FingersCrossedHand...
testHandleStopsBufferingAfterTrigger()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
testHandleWithBadCallbackThrowsException()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
testHandleRestartBufferingAfterReset()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
testHandleBufferLimit()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
testChannelLevelActivationStrategy()
@covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::__construct @covers Monolog\Ha...
testChannelLevelActivationStrategyWithPsrLevels()
@covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::__construct @covers Monolog\Ha...
testIsHandlingAlways()
@covers Monolog\Handler\FingersCrossedHandler::isHandling
testHandleWithCallback()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
testPsrLevelPassthruOnClose()
@covers Monolog\Handler\FingersCrossedHandler::close
testErrorLevelActivationStrategyWithPsrLevel()
@covers Monolog\Handler\FingersCrossedHandler::__construct @covers Monolog\Handler\FingersCrossed\Err...
testHandleUsesProcessors()
@covers Monolog\Handler\FingersCrossedHandler::handle @covers Monolog\Handler\FingersCrossedHandler::...
Buffers all records until a certain level is reached.
Channel and Error level based monolog activation strategy.
Error level based activation strategy.
Used for testing purposes.
const ERROR
Runtime errors.
const WARNING
Exceptional occurrences that are not errors.
const INFO
Interesting events.
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())