1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +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

@@ -66,10 +66,10 @@ class IntrospectionProcessorTest extends TestCase
public function testLevelTooLow()
{
$input = array(
$input = [
'level' => Logger::DEBUG,
'extra' => array(),
);
'extra' => [],
];
$expected = $input;
@@ -81,18 +81,18 @@ class IntrospectionProcessorTest extends TestCase
public function testLevelEqual()
{
$input = array(
$input = [
'level' => Logger::CRITICAL,
'extra' => array(),
);
'extra' => [],
];
$expected = $input;
$expected['extra'] = array(
$expected['extra'] = [
'file' => null,
'line' => null,
'class' => 'ReflectionMethod',
'function' => 'invokeArgs',
);
];
$processor = new IntrospectionProcessor(Logger::CRITICAL);
$actual = $processor($input);
@@ -102,18 +102,18 @@ class IntrospectionProcessorTest extends TestCase
public function testLevelHigher()
{
$input = array(
$input = [
'level' => Logger::EMERGENCY,
'extra' => array(),
);
'extra' => [],
];
$expected = $input;
$expected['extra'] = array(
$expected['extra'] = [
'file' => null,
'line' => null,
'class' => 'ReflectionMethod',
'function' => 'invokeArgs',
);
];
$processor = new IntrospectionProcessor(Logger::CRITICAL);
$actual = $processor($input);