38 foreach ($testHandlers as
$test) {
39 $this->assertTrue($test->hasDebugRecords());
40 $this->assertTrue($test->hasInfoRecords());
41 $this->assertTrue(count($test->getRecords()) === 2);
53 foreach ($testHandlers as
$test) {
54 $this->assertTrue($test->hasDebugRecords());
55 $this->assertTrue($test->hasInfoRecords());
56 $this->assertTrue(count($test->getRecords()) === 2);
79 $handler->pushProcessor(
function ($record) {
80 $record[
'extra'][
'foo'] =
true;
85 $this->assertTrue(
$test->hasWarningRecords());
87 $this->assertTrue($records[0][
'extra'][
'foo']);
97 $handler->pushProcessor(
function ($record) {
98 $record[
'extra'][
'foo'] =
true;
103 foreach ($testHandlers as
$test) {
104 $this->assertTrue($test->hasDebugRecords());
105 $this->assertTrue($test->hasInfoRecords());
106 $this->assertTrue(count($test->getRecords()) === 2);
108 $this->assertTrue(
$records[0][
'extra'][
'foo']);
109 $this->assertTrue(
$records[1][
'extra'][
'foo']);
testConstructorOnlyTakesHandler()
Monolog::__construct InvalidArgumentException
const DEBUG
Detailed debug information.
testHandleBatchUsesProcessors()
Monolog::handle
const ERROR
Runtime errors.
testHandleUsesProcessors()
Monolog::handle
getRecord($level=Logger::WARNING, $message='test', $context=array())
Forwards records to multiple handlers.
testIsHandling()
Monolog::isHandling
const WARNING
Exceptional occurrences that are not errors.
testHandle()
Monolog::__construct Monolog::handle
Used for testing purposes.
testHandleBatch()
Monolog::handleBatch
const INFO
Interesting events.