Skip to content

Commit

Permalink
test: provider should be static in phpunit v10
Browse files Browse the repository at this point in the history
  • Loading branch information
xel1045 committed Mar 26, 2024
1 parent 92eaf9a commit ea16d74
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/BladeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testDirective(string $directive, bool $state): void
/**
* @return \Generator
*/
public function provideTestDirective(): Generator
public static function provideTestDirective(): Generator
{
yield ['launch', true];
yield ['launch', false];
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Strategy/CallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testLaunch($expected): void
/**
* @return \Generator
*/
public function provideTestLaunch(): Generator
public static function provideTestLaunch(): Generator
{
yield [true];
yield [false];
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Strategy/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testLaunch(bool $expected): void
/**
* @return array
*/
public function provideTestLaunch(): array
public static function provideTestLaunch(): array
{
return [
[true],
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Strategy/DateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testLaunch($date, $operator, $expected): void
/**
* @return \Generator
*/
public function provideTestLaunch(): Generator
public static function provideTestLaunch(): Generator
{
yield ['2019-12-31', '<', true];
yield ['2020-01-01', '<', false];
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Strategy/EnvironmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testLaunch($environments, string $actualEnvironment, bool $expec
/**
* @return \Generator
*/
public function provideTestLaunch(): Generator
public static function provideTestLaunch(): Generator
{
yield ['local', 'local', true];
yield ['local', 'production', false];
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Strategy/HostnameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testLaunch($hosts, string $actualHost, bool $expectedLaunch): vo
/**
* @return \Generator
*/
public function provideTestLaunch(): Generator
public static function provideTestLaunch(): Generator
{
yield ['localhost', 'localhost', true];
yield ['localhost', 'bento.dev', false];
Expand Down

0 comments on commit ea16d74

Please sign in to comment.