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:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
@@ -27,12 +27,6 @@ class NullHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertFalse($handler->handle($this->getMessage(Logger::DEBUG)));
|
||||
}
|
||||
|
||||
public function testHandleBubbling()
|
||||
{
|
||||
$handler = new NullHandler(Logger::DEBUG, true);
|
||||
$this->assertFalse($handler->handle($this->getMessage()));
|
||||
}
|
||||
|
||||
/**
|
||||
* No-op test for coverage
|
||||
*/
|
||||
|
Reference in New Issue
Block a user