mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 06:06:40 +02:00
Build tweaks
This commit is contained in:
@@ -49,7 +49,7 @@ class MongoDBFormatterTest extends \PHPUnit\Framework\TestCase
|
||||
$reflTrace->setAccessible(true);
|
||||
$this->assertEquals($expectedTraceAsString, $reflTrace->getValue($formatter));
|
||||
|
||||
$reflDepth = new\ReflectionProperty($formatter, 'maxNestingLevel');
|
||||
$reflDepth = new \ReflectionProperty($formatter, 'maxNestingLevel');
|
||||
$reflDepth->setAccessible(true);
|
||||
$this->assertEquals($expectedTraceDepth, $reflDepth->getValue($formatter));
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ class MongoDBHandlerTest extends TestCase
|
||||
|
||||
$record = $this->getRecord();
|
||||
$expected = $record;
|
||||
$expected['datetime'] = $record['datetime']->format(NormalizerFormatter::SIMPLE_DATE);
|
||||
$expected['datetime'] = new \MongoDB\BSON\UTCDateTime((int) floor(((float) $record['datetime']->format('U.u')) * 1000));
|
||||
|
||||
$collection->expects($this->once())
|
||||
->method('insertOne')
|
||||
|
Reference in New Issue
Block a user