1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-16 01:54:19 +02:00

Upgrade to phpunit 10 (#1806)

Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de>
This commit is contained in:
chris
2023-06-20 15:56:11 +02:00
committed by GitHub
parent 50409b8169
commit 8561130215
28 changed files with 106 additions and 85 deletions

View File

@@ -517,7 +517,7 @@ class LoggerTest extends TestCase
$this->assertEquals($expectedLevel, $record->level);
}
public function logMethodProvider()
public static function logMethodProvider()
{
return [
// PSR-3 methods
@@ -547,7 +547,7 @@ class LoggerTest extends TestCase
$this->assertEquals($tz, $record->datetime->getTimezone());
}
public function setTimezoneProvider()
public static function setTimezoneProvider()
{
return array_map(
function ($tz) {
@@ -628,7 +628,7 @@ class LoggerTest extends TestCase
$this->assertSame($record->datetime->format($assertFormat), (string) $record->datetime);
}
public function useMicrosecondTimestampsProvider()
public static function useMicrosecondTimestampsProvider()
{
return [
// this has a very small chance of a false negative (1/10^6)