mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 18:00:17 +02:00
ElasticSearch v8 support (#1662)
* ElasticSearch v8 support * CI updates Co-authored-by: Thomas Müller <mimmi20@live.de>
This commit is contained in:
@@ -39,6 +39,18 @@ class RotatingFileHandlerTest extends TestCase
|
||||
});
|
||||
}
|
||||
|
||||
public function tearDown(): void
|
||||
{
|
||||
parent::tearDown();
|
||||
|
||||
foreach (glob(__DIR__.'/Fixtures/*.rot') as $file) {
|
||||
unlink($file);
|
||||
}
|
||||
restore_error_handler();
|
||||
|
||||
unset($this->lastError);
|
||||
}
|
||||
|
||||
private function assertErrorWasTriggered($code, $message)
|
||||
{
|
||||
if (empty($this->lastError)) {
|
||||
@@ -239,12 +251,4 @@ class RotatingFileHandlerTest extends TestCase
|
||||
$handler->handle($this->getRecord());
|
||||
$this->assertEquals('footest', file_get_contents($log));
|
||||
}
|
||||
|
||||
public function tearDown(): void
|
||||
{
|
||||
foreach (glob(__DIR__.'/Fixtures/*.rot') as $file) {
|
||||
unlink($file);
|
||||
}
|
||||
restore_error_handler();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user