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

Fixing tests and CS, refs #468

This commit is contained in:
Jordi Boggiano
2014-12-29 20:45:41 +00:00
parent da0a7f3c8e
commit 5ce2b38b3b
2 changed files with 8 additions and 7 deletions

View File

@@ -76,6 +76,7 @@ class MongoDBFormatter implements FormatterInterface
{
$objectVars = get_object_vars($value);
$objectVars['class'] = get_class($value);
return $this->formatArray($objectVars, $nestingLevel);
}

View File

@@ -110,7 +110,7 @@ class MongoDBFormatterTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('some string', $formattedRecord['context']['context_string']);
$this->assertEquals(123456, $formattedRecord['context']['context_int']);
$this->assertCount(6, $formattedRecord['context']['except']);
$this->assertCount(5, $formattedRecord['context']['except']);
$this->assertEquals('exception message', $formattedRecord['context']['except']['message']);
$this->assertEquals(987, $formattedRecord['context']['except']['code']);
$this->assertInternalType('string', $formattedRecord['context']['except']['file']);