mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 23:24:02 +02:00
Use getRecord to get a record in unit test
This commit is contained in:
@@ -44,17 +44,7 @@ class ZendMonitorHandlerTest extends TestCase
|
|||||||
->getMock();
|
->getMock();
|
||||||
$zendMonitor->expects($this->once())
|
$zendMonitor->expects($this->once())
|
||||||
->method('writeZendMonitorCustomEvent');
|
->method('writeZendMonitorCustomEvent');
|
||||||
$zendMonitor->handle(
|
$zendMonitor->handle($this->getRecord());
|
||||||
array(
|
|
||||||
'message' => 'addDebug Message',
|
|
||||||
'context' => array(),
|
|
||||||
'level' => Logger::DEBUG,
|
|
||||||
'level_name' => 'DEBUG',
|
|
||||||
'channel' => 'zendmonitor',
|
|
||||||
'extra' => array(),
|
|
||||||
'formatted' => '[2013-01-30 19:07:32] zendmonitor.DEBUG: addDebug Message [] []'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user