1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00
This commit is contained in:
Jordi Boggiano
2016-05-26 20:54:06 +01:00
parent 85e43a5e7b
commit f200e79879
115 changed files with 1138 additions and 1123 deletions

View File

@@ -20,24 +20,24 @@ class PsrLogMessageProcessorTest extends \PHPUnit_Framework_TestCase
{
$proc = new PsrLogMessageProcessor;
$message = $proc(array(
$message = $proc([
'message' => '{foo}',
'context' => array('foo' => $val),
));
'context' => ['foo' => $val],
]);
$this->assertEquals($expected, $message['message']);
}
public function getPairs()
{
return array(
array('foo', 'foo'),
array('3', '3'),
array(3, '3'),
array(null, ''),
array(true, '1'),
array(false, ''),
array(new \stdClass, '[object stdClass]'),
array(array(), '[array]'),
);
return [
['foo', 'foo'],
['3', '3'],
[3, '3'],
[null, ''],
[true, '1'],
[false, ''],
[new \stdClass, '[object stdClass]'],
[[], '[array]'],
];
}
}