Skip to content

Commit f5891f0

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix merge Migrate to `static` data providers using `rector/rector`
2 parents 646e959 + d142ec4 commit f5891f0

17 files changed

+22
-22
lines changed

Tests/Comparator/ComparatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testTestSucceeds(string $operator, string $target, string $teste
3737
$this->assertTrue($c->test($testedValue));
3838
}
3939

40-
public function provideMatches(): array
40+
public static function provideMatches(): array
4141
{
4242
return [
4343
['<', '1000', '500'],
@@ -63,7 +63,7 @@ public function testTestFails(string $operator, string $target, string $testedVa
6363
$this->assertFalse($c->test($testedValue));
6464
}
6565

66-
public function provideNonMatches(): array
66+
public static function provideNonMatches(): array
6767
{
6868
return [
6969
['>', '1000', '500'],

Tests/Comparator/DateComparatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testTest($test, $match, $noMatch)
4949
}
5050
}
5151

52-
public function getTestData()
52+
public static function getTestData()
5353
{
5454
return [
5555
['< 2005-10-10', [strtotime('2005-10-09')], [strtotime('2005-10-15')]],

Tests/Comparator/NumberComparatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testTest($test, $match, $noMatch)
5151
}
5252
}
5353

54-
public function getTestData()
54+
public static function getTestData()
5555
{
5656
return [
5757
['< 1000', ['500', '999'], ['1000', '1500']],
@@ -81,7 +81,7 @@ public function getTestData()
8181
];
8282
}
8383

84-
public function getConstructorTestData()
84+
public static function getConstructorTestData()
8585
{
8686
return [
8787
[

Tests/FinderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ public function testRegexSpecialCharsLocationWithPathRestrictionContainingStartF
14321432
$this->assertIterator($this->toAbsoluteFixtures($expected), $finder);
14331433
}
14341434

1435-
public function getContainsTestData()
1435+
public static function getContainsTestData()
14361436
{
14371437
return [
14381438
['', '', []],
@@ -1450,7 +1450,7 @@ public function getContainsTestData()
14501450
];
14511451
}
14521452

1453-
public function getRegexNameTestData()
1453+
public static function getRegexNameTestData()
14541454
{
14551455
return [
14561456
['~.*t\\.p.+~i'],
@@ -1471,7 +1471,7 @@ public function testPath($matchPatterns, $noMatchPatterns, array $expected)
14711471
$this->assertIterator($this->toAbsoluteFixtures($expected), $finder);
14721472
}
14731473

1474-
public function getTestPathData()
1474+
public static function getTestPathData()
14751475
{
14761476
return [
14771477
['', '', []],

Tests/GitignoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function provider(): array
392392
return $cases;
393393
}
394394

395-
public function providerExtended(): array
395+
public static function providerExtended(): array
396396
{
397397
$basicCases = self::provider();
398398

@@ -479,7 +479,7 @@ public function testToRegexMatchingNegatedPatterns(array $gitignoreLines, array
479479
}
480480
}
481481

482-
public function provideNegatedPatternsCases(): iterable
482+
public static function provideNegatedPatternsCases(): iterable
483483
{
484484
yield [
485485
[''],

Tests/Iterator/CustomFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testAccept($filters, $expected)
3333
$this->assertIterator($expected, $iterator);
3434
}
3535

36-
public function getAcceptData()
36+
public static function getAcceptData()
3737
{
3838
return [
3939
[[fn (\SplFileInfo $fileinfo) => false], []],

Tests/Iterator/DateRangeFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testAccept($size, $expected)
3030
$this->assertIterator($expected, $iterator);
3131
}
3232

33-
public function getAcceptData()
33+
public static function getAcceptData()
3434
{
3535
$since20YearsAgo = [
3636
'.git',

Tests/Iterator/DepthRangeFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testAccept($minDepth, $maxDepth, $expected)
3030
$this->assertEquals($expected, $actual);
3131
}
3232

33-
public function getAcceptData()
33+
public static function getAcceptData()
3434
{
3535
$lessThan1 = [
3636
'.git',

Tests/Iterator/ExcludeDirectoryFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testAccept($directories, $expected)
2828
$this->assertIterator($expected, $iterator);
2929
}
3030

31-
public function getAcceptData()
31+
public static function getAcceptData()
3232
{
3333
$foo = [
3434
'.bar',

Tests/Iterator/FileTypeFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testAccept($mode, $expected)
2727
$this->assertIterator($expected, $iterator);
2828
}
2929

30-
public function getAcceptData()
30+
public static function getAcceptData()
3131
{
3232
$onlyFiles = [
3333
'test.py',

Tests/Iterator/FilecontentFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testFilter(\Iterator $inner, array $matchPatterns, array $noMatc
4545
$this->assertIterator($resultArray, $iterator);
4646
}
4747

48-
public function getTestFilterData()
48+
public static function getTestFilterData()
4949
{
5050
$inner = new MockFileListIterator();
5151

Tests/Iterator/FilenameFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testAccept($matchPatterns, $noMatchPatterns, $expected)
2727
$this->assertIterator($expected, $iterator);
2828
}
2929

30-
public function getAcceptData()
30+
public static function getAcceptData()
3131
{
3232
return [
3333
[['test.*'], [], ['test.php', 'test.py']],

Tests/Iterator/MultiplePcreFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testIsRegex($string, $isRegex, $message)
2525
$this->assertEquals($isRegex, $testIterator->isRegex($string), $message);
2626
}
2727

28-
public function getIsRegexFixtures()
28+
public static function getIsRegexFixtures()
2929
{
3030
yield ['foo', false, 'string'];
3131
yield [' foo ', false, '" " is not a valid delimiter'];

Tests/Iterator/PathFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testFilter(\Iterator $inner, array $matchPatterns, array $noMatc
2424
$this->assertIterator($resultArray, $iterator);
2525
}
2626

27-
public function getTestFilterData()
27+
public static function getTestFilterData()
2828
{
2929
$inner = new MockFileListIterator();
3030

Tests/Iterator/SizeRangeFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testAccept($size, $expected)
2828
$this->assertIterator($expected, $iterator);
2929
}
3030

31-
public function getAcceptData()
31+
public static function getAcceptData()
3232
{
3333
$lessThan1KGreaterThan05K = [
3434
'.foo',

Tests/Iterator/SortableIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testAccept($mode, $expected)
6868
}
6969
}
7070

71-
public function getAcceptData()
71+
public static function getAcceptData()
7272
{
7373
$sortByName = [
7474
'.bar',

Tests/Iterator/VcsIgnoredFilterIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testAccept(array $gitIgnoreFiles, array $otherFileNames, array $
5959
$this->assertIterator($this->toAbsolute($expectedResult), $iterator);
6060
}
6161

62-
public function getAcceptData(): iterable
62+
public static function getAcceptData(): iterable
6363
{
6464
yield 'simple file' => [
6565
[

0 commit comments

Comments
 (0)