Skip to content

Commit 42bbb84

Browse files
OskarStarknicolas-grekas
authored andcommitted
Migrate to static data providers using rector/rector
1 parent eb228ad commit 42bbb84

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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
@@ -30,7 +30,7 @@ public function testS(AbstractString $expected, ?string $input)
3030
$this->assertEquals($expected, s($input));
3131
}
3232

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

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

71-
public function provideBStrings(): array
71+
public static function provideBStrings(): array
7272
{
7373
return [
7474
[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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class AsciiSluggerTest extends TestCase
1818
{
19-
public function provideSlugTests(): iterable
19+
public static function provideSlugTests(): iterable
2020
{
2121
yield ['', ''];
2222
yield ['foo', ' foo '];

0 commit comments

Comments
 (0)