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

Build tweaks

This commit is contained in:
Jordi Boggiano
2020-12-09 16:54:31 +01:00
parent fd305da67b
commit ec146b38bd
7 changed files with 24 additions and 17 deletions

View File

@@ -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));
}

View File

@@ -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')