Skip to content

Commit

Permalink
Fix test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 11, 2024
1 parent aefa7b1 commit 37d906f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Monolog/Formatter/JsonFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public function testFormatBatch()
$this->getRecord(Level::Warning),
$this->getRecord(Level::Debug),
];
$expected = array_map(fn (LogRecord $record) => $record->toArray(), $records);
$this->assertEquals(json_encode($expected), $formatter->formatBatch($records));
$expected = array_map(fn (LogRecord $record) => json_encode($record->toArray(), JSON_FORCE_OBJECT), $records);
$this->assertEquals('['.implode(',', $expected).']', $formatter->formatBatch($records));
}

/**
Expand Down

0 comments on commit 37d906f

Please sign in to comment.