mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 14:16:42 +02:00
Override getDefaultFormatter instead of creating a formatter with 'new' in method 'write'. Using levelMap again. Refactored test.
This commit is contained in:
@@ -45,9 +45,11 @@ class ZendMonitorHandlerTest extends TestCase
|
||||
->setMethods(array('writeZendMonitorCustomEvent'))
|
||||
->getMock();
|
||||
|
||||
$levelMap = $zendMonitor->getLevelMap();
|
||||
|
||||
$zendMonitor->expects($this->once())
|
||||
->method('writeZendMonitorCustomEvent')
|
||||
->with($record['level'], $record['message']);
|
||||
->with($levelMap[$record['level']], $record['message']);
|
||||
|
||||
$zendMonitor->handle($record);
|
||||
}
|
||||
|
Reference in New Issue
Block a user