Skip to content

Commit

Permalink
chore(req-checker): Fix PHPUnit deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 23, 2023
1 parent cca9229 commit fb8d592
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirement-checker/tests/CheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function test_it_can_check_requirements(
self::assertSame($expectedResult, $actualResult);
}

public function provideRequirements(): iterable
public static function provideRequirements(): iterable
{
$phpVersion = PHP_VERSION;
$remainingVerbosities = ['verbosity=verbose' => IO::VERBOSITY_VERBOSE, 'verbosity=normal' => IO::VERBOSITY_NORMAL, 'verbosity=quiet' => IO::VERBOSITY_QUIET];
Expand Down
4 changes: 2 additions & 2 deletions requirement-checker/tests/IOTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function test_it_uses_the_shell_verbosity_environment_variable_over_the_o
self::assertSame($verbosity, $io->getVerbosity());
}

public function provideOptions(): iterable
public static function provideOptions(): iterable
{
yield [
['cli.php', '--foo'],
Expand Down Expand Up @@ -154,7 +154,7 @@ public function provideOptions(): iterable
];
}

public function provideOptionsWithShellVerbosity(): iterable
public static function provideOptionsWithShellVerbosity(): iterable
{
yield [
['cli.php', '--foo'],
Expand Down
6 changes: 3 additions & 3 deletions requirement-checker/tests/PrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function test_it_can_print_a_block(
self::assertSame($expected, $actual);
}

public function provideTitles(): iterable
public static function provideTitles(): iterable
{
yield [
IO::VERBOSITY_NORMAL,
Expand Down Expand Up @@ -170,7 +170,7 @@ public function provideTitles(): iterable
];
}

public function provideErrorRequirements(): iterable
public static function provideErrorRequirements(): iterable
{
yield [
new Requirement(
Expand Down Expand Up @@ -215,7 +215,7 @@ public function provideErrorRequirements(): iterable
];
}

public function provideBlocks(): iterable
public static function provideBlocks(): iterable
{
yield [
IO::VERBOSITY_NORMAL,
Expand Down

0 comments on commit fb8d592

Please sign in to comment.