1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 23:24:02 +02:00

Fix up mongo db handler and add tests

This commit is contained in:
Jordi Boggiano
2012-04-22 12:36:48 +02:00
parent 0bd4d93006
commit 1359f72b08
5 changed files with 75 additions and 10 deletions

View File

@@ -16,11 +16,11 @@ class TestCase extends \PHPUnit_Framework_TestCase
/**
* @return array Record
*/
protected function getRecord($level = Logger::WARNING, $message = 'test')
protected function getRecord($level = Logger::WARNING, $message = 'test', $context = array())
{
return array(
'message' => $message,
'context' => array(),
'context' => $context,
'level' => $level,
'level_name' => Logger::getLevelName($level),
'channel' => 'test',