mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-11 23:54:04 +02:00
Code cleanups
This commit is contained in:
@@ -122,7 +122,7 @@ class DeduplicationHandlerTest extends TestCase
|
||||
// log is written as none of them are duplicate
|
||||
$handler->flush();
|
||||
$this->assertSame(
|
||||
$record['datetime']->getTimestamp() . ":ERROR:test\n" .
|
||||
$record->datetime->getTimestamp() . ":ERROR:test\n" .
|
||||
$record2['datetime']->getTimestamp() . ":CRITICAL:test\n" .
|
||||
$record3['datetime']->getTimestamp() . ":CRITICAL:test\n",
|
||||
file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
|
||||
@@ -144,7 +144,7 @@ class DeduplicationHandlerTest extends TestCase
|
||||
// log should now contain the new errors and the previous one that was recent enough
|
||||
$this->assertSame(
|
||||
$record3['datetime']->getTimestamp() . ":CRITICAL:test\n" .
|
||||
$record['datetime']->getTimestamp() . ":ERROR:test\n" .
|
||||
$record->datetime->getTimestamp() . ":ERROR:test\n" .
|
||||
$record2['datetime']->getTimestamp() . ":CRITICAL:test\n",
|
||||
file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
|
||||
);
|
||||
|
Reference in New Issue
Block a user