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

Merge pull request #1169 from lstrojny/dev/better-psr3-formatting

Better PSR-3 message formatting
This commit is contained in:
Jordi Boggiano
2018-06-18 16:50:07 +02:00
committed by GitHub
2 changed files with 16 additions and 4 deletions

View File

@@ -68,7 +68,11 @@ class PsrLogMessageProcessorTest extends \PHPUnit\Framework\TestCase
[false, ''],
[$date, $date->format(PsrLogMessageProcessor::SIMPLE_DATE)],
[new \stdClass, '[object stdClass]'],
[[], '[array]'],
[[], 'array[]'],
[[], 'array[]'],
[[1, 2, 3], 'array[1,2,3]'],
[['foo' => 'bar'], 'array{"foo":"bar"}'],
[stream_context_create(), '[resource]'],
];
}
}