Skip to content

Commit 25425fa

Browse files
committed
test: Make sure data providers are static
1 parent 3342367 commit 25425fa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Test/Integration/Util/AjaxTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testIsAjax(array $headerArray, bool $expectedResult)
2525
$this->assertEquals($expectedResult, $ajax->isAjax(), var_export($headerArray, true));
2626
}
2727

28-
public function getTestData(): array
28+
public static function getTestData(): array
2929
{
3030
return [
3131
[['X-Alpine-Request' => 'true'], true],

Test/Integration/Validator/EmailValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testWithVariousValues(string $email, true|string $expectedResult
3939
$this->assertStringContainsString($expectedResult, $error, var_export($actualResult, true));
4040
}
4141

42-
public function getValues(): array
42+
public static function getValues(): array
4343
{
4444
return [
4545
['jane@example.com', true],

0 commit comments

Comments
 (0)