Skip to content

Commit

Permalink
Migrate to static data providers using rector/rector
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Feb 14, 2023
1 parent eb228ad commit 42bbb84
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tests/AbstractAsciiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function testWordwrap($expected, $actual, $length, $break, $cut = false)
$this->assertEquals($expected, $actual);
}

public function wordwrapProvider()
public static function wordwrapProvider()
{
return [
[
Expand Down
6 changes: 3 additions & 3 deletions Tests/FunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testS(AbstractString $expected, ?string $input)
$this->assertEquals($expected, s($input));
}

public function provideSStrings(): array
public static function provideSStrings(): array
{
return [
[new UnicodeString(''), ''],
Expand All @@ -50,7 +50,7 @@ public function testU(UnicodeString $expected, ?string $input)
$this->assertEquals($expected, u($input));
}

public function provideUStrings(): array
public static function provideUStrings(): array
{
return [
[new UnicodeString(''), ''],
Expand All @@ -68,7 +68,7 @@ public function testB(ByteString $expected, ?string $input)
$this->assertEquals($expected, b($input));
}

public function provideBStrings(): array
public static function provideBStrings(): array
{
return [
[new ByteString(''), ''],
Expand Down
4 changes: 2 additions & 2 deletions Tests/Inflector/EnglishInflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class EnglishInflectorTest extends TestCase
{
public function singularizeProvider()
public static function singularizeProvider()
{
// see http://english-zone.com/spelling/plurals.html
// see http://www.scribd.com/doc/3271143/List-of-100-Irregular-Plural-Nouns-in-English
Expand Down Expand Up @@ -166,7 +166,7 @@ public function singularizeProvider()
];
}

public function pluralizeProvider()
public static function pluralizeProvider()
{
// see http://english-zone.com/spelling/plurals.html
// see http://www.scribd.com/doc/3271143/List-of-100-Irregular-Plural-Nouns-in-English
Expand Down
2 changes: 1 addition & 1 deletion Tests/Inflector/FrenchInflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class FrenchInflectorTest extends TestCase
{
public function pluralizeProvider()
public static function pluralizeProvider()
{
return [
// Le pluriel par défaut
Expand Down
2 changes: 1 addition & 1 deletion Tests/Slugger/AsciiSluggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class AsciiSluggerTest extends TestCase
{
public function provideSlugTests(): iterable
public static function provideSlugTests(): iterable
{
yield ['', ''];
yield ['foo', ' foo '];
Expand Down

0 comments on commit 42bbb84

Please sign in to comment.