Skip to content

Commit 40c0863

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use static methods inside data providers
1 parent 7872a66 commit 40c0863

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/GitignoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testToRegex(array $gitignoreLines, array $matchingCases, array $
5555
}
5656
}
5757

58-
public function provider(): array
58+
public static function provider(): array
5959
{
6060
$cases = [
6161
[
@@ -394,7 +394,7 @@ public function provider(): array
394394

395395
public function providerExtended(): array
396396
{
397-
$basicCases = $this->provider();
397+
$basicCases = self::provider();
398398

399399
$cases = [];
400400
foreach ($basicCases as $case) {

Tests/Iterator/SizeRangeFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getAcceptData()
4141
];
4242

4343
return [
44-
[[new NumberComparator('< 1K'), new NumberComparator('> 0.5K')], $this->toAbsolute($lessThan1KGreaterThan05K)],
44+
[[new NumberComparator('< 1K'), new NumberComparator('> 0.5K')], self::toAbsolute($lessThan1KGreaterThan05K)],
4545
];
4646
}
4747
}

0 commit comments

Comments
 (0)