1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 06:36:46 +02:00

Use getRecord to get a record in unit test

This commit is contained in:
ChristianB
2013-01-30 20:17:14 +01:00
parent ea009c091b
commit 4eb6011dc1

View File

@@ -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());
}
}