1
0
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:
ChristianB
2013-01-30 20:17:14 +01:00
parent ea009c091b
commit 4eb6011dc1

View File

@@ -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 [] []'
)
);
} }
} }