Skip to content

Commit d7f7a96

Browse files
committed
PHPUnit providers should be static method
1 parent 66b84a7 commit d7f7a96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Test/LoggerInterfaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testLogsAtAllLevels($level, $message)
5454
$this->assertEquals($expected, $this->getLogs());
5555
}
5656

57-
public function provideLevelsAndMessages()
57+
public static function provideLevelsAndMessages()
5858
{
5959
return [
6060
LogLevel::EMERGENCY => [LogLevel::EMERGENCY, 'message of level emergency with context: {user}'],

tests/Test/TestLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testHasRecord(string $level): void
7979
$this->assertTrue(call_user_func([$logger, $levelMethod.'ThatPasses'], fn (array $record) => $record['message'] === $level.' Message'), $levelMethod.'ThatMatches');
8080
}
8181

82-
public function getLogLevels(): array
82+
public static function getLogLevels(): array
8383
{
8484
return [
8585
['debug'],

0 commit comments

Comments
 (0)