mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +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();
|
||||
$zendMonitor->expects($this->once())
|
||||
->method('writeZendMonitorCustomEvent');
|
||||
$zendMonitor->handle(
|
||||
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 [] []'
|
||||
)
|
||||
);
|
||||
$zendMonitor->handle($this->getRecord());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user