Skip to content

Commit 6515bac

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix merge Migrate to `static` data providers using `rector/rector`
2 parents 546b357 + d745912 commit 6515bac

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Tests/AbstractAsciiTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testWordwrap($expected, $actual, $length, $break, $cut = false)
110110
$this->assertEquals($expected, $actual);
111111
}
112112

113-
public function wordwrapProvider()
113+
public static function wordwrapProvider()
114114
{
115115
return [
116116
[

Tests/FunctionsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testS(AbstractString $expected, ?string $input)
3131
$this->assertEquals($expected, s($input));
3232
}
3333

34-
public function provideSStrings(): array
34+
public static function provideSStrings(): array
3535
{
3636
return [
3737
[new UnicodeString(''), ''],
@@ -51,7 +51,7 @@ public function testU(UnicodeString $expected, ?string $input)
5151
$this->assertEquals($expected, u($input));
5252
}
5353

54-
public function provideUStrings(): array
54+
public static function provideUStrings(): array
5555
{
5656
return [
5757
[new UnicodeString(''), ''],
@@ -69,7 +69,7 @@ public function testB(ByteString $expected, ?string $input)
6969
$this->assertEquals($expected, b($input));
7070
}
7171

72-
public function provideBStrings(): array
72+
public static function provideBStrings(): array
7373
{
7474
return [
7575
[new ByteString(''), ''],

Tests/Inflector/EnglishInflectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class EnglishInflectorTest extends TestCase
1818
{
19-
public function singularizeProvider()
19+
public static function singularizeProvider()
2020
{
2121
// see http://english-zone.com/spelling/plurals.html
2222
// see http://www.scribd.com/doc/3271143/List-of-100-Irregular-Plural-Nouns-in-English
@@ -166,7 +166,7 @@ public function singularizeProvider()
166166
];
167167
}
168168

169-
public function pluralizeProvider()
169+
public static function pluralizeProvider()
170170
{
171171
// see http://english-zone.com/spelling/plurals.html
172172
// see http://www.scribd.com/doc/3271143/List-of-100-Irregular-Plural-Nouns-in-English

Tests/Inflector/FrenchInflectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class FrenchInflectorTest extends TestCase
1818
{
19-
public function pluralizeProvider()
19+
public static function pluralizeProvider()
2020
{
2121
return [
2222
// Le pluriel par défaut

Tests/Slugger/AsciiSluggerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testSlug(string $expected, string $string, string $separator = '
2626
$this->assertSame($expected, (string) $slugger->slug($string, $separator, $locale));
2727
}
2828

29-
public function provideSlugTests(): iterable
29+
public static function provideSlugTests(): iterable
3030
{
3131
yield ['', ''];
3232
yield ['foo', ' foo '];
@@ -60,7 +60,7 @@ public function testSlugEmoji(string $expected, string $string, ?string $locale,
6060
$this->assertSame($expected, (string) $slugger->slug($string, '-', $locale));
6161
}
6262

63-
public function provideSlugEmojiTests(): iterable
63+
public static function provideSlugEmojiTests(): iterable
6464
{
6565
yield [
6666
'un-chat-qui-sourit-chat-noir-et-un-tete-de-lion-vont-au-parc-national',

0 commit comments

Comments
 (0)