1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 22:26:41 +02:00

Added docblocks and fixed a couple tests

This commit is contained in:
Jordi Boggiano
2011-02-22 12:10:54 +01:00
parent 81c6cd3ed1
commit 811e6c79d6
14 changed files with 79 additions and 15 deletions

View File

@@ -18,13 +18,13 @@ class JsonFormatterTest extends \PHPUnit_Framework_TestCase
public function testFormat()
{
$formatter = new JsonFormatter();
$message = $formatter->format(array(
$message = $formatter->format($msg = array(
'level_name' => 'WARNING',
'channel' => 'log',
'message' => array('foo'),
'datetime' => new \DateTime,
'extra' => array(),
));
$this->assertEquals(json_encode(array('foo')), $message['message']);
$this->assertEquals(json_encode($msg), $message['message']);
}
}