$currentDateTime->
format(ConsoleFormatter::SIMPLE_DATE
) ),
],
];
if (Logger::API < 3
) { $tests['record with string in datetime field'
] =
[ 'record' =>
[ 'message' => 'test',
'context' =>
[],
'level' => Logger::WARNING,
'level_name' => Logger::
getLevelName(Logger::WARNING
),
'channel' => 'test',
'datetime' => '2019-01-01T00:42:00+00:00',
'extra' =>
[],
],
'expectedMessage' => "2019-01-01T00:42:00+00:00 <fg=cyan>WARNING </> <comment>[test]</> test\n",
];
} return $tests;
}}