Skip to content

Commit a319eb0

Browse files
committed
test: run rector
1 parent 6dfb295 commit a319eb0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/Language/AbstractTranslationTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ final public function testAllConfiguredLanguageKeysAreInOrder(string $locale): v
305305
/**
306306
* @return string[][]
307307
*/
308-
final public function localesProvider(): iterable
308+
final public static function localesProvider(): iterable
309309
{
310310
$locale = self::$locales[static::class] ?? null;
311311

312312
if (null === $locale) {
313-
$this->fail('The locale code should be defined in the $locales property.');
313+
static::fail('The locale code should be defined in the $locales property.');
314314
}
315315

316316
return [$locale => [$locale]];

tests/Unit/FilterInCliTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testWhenInCliDoNothing(FilterInterface $filter): void
3131
$filter->before($clirequest);
3232
}
3333

34-
public function filterProvider(): Generator
34+
public static function filterProvider(): Generator
3535
{
3636
yield from [
3737
[new AuthRates()],

tests/Unit/NothingPersonalValidatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function testIsNotPersonalFalsePositivesCaughtByIsNotSimilar($password):
180180
$this->assertNotSame($isNotPersonal, $isNotSimilar);
181181
}
182182

183-
public function passwordProvider(): array
183+
public static function passwordProvider(): array
184184
{
185185
return [
186186
['JoeTheCaptain'],
@@ -225,7 +225,7 @@ public function testConfigPersonalFieldsValues($firstName, $lastName, $expected)
225225
$this->assertSame($expected, $result->isOK());
226226
}
227227

228-
public function firstLastNameProvider()
228+
public static function firstLastNameProvider()
229229
{
230230
return [
231231
[
@@ -275,7 +275,7 @@ public function testMaxSimilarityZeroTurnsOffSimilarityCalculation($maxSimilarit
275275
$this->assertSame($expected, $result->isOK());
276276
}
277277

278-
public function maxSimilarityProvider()
278+
public static function maxSimilarityProvider()
279279
{
280280
return [
281281
[

0 commit comments

Comments
 (0)