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 8bc8824 commit f909a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/ConfigEnvironmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function testBuildValidServerString($host, $user, $options, $expected): v
/**
* @return \Generator
*/
public function provideTestBuildValidServerString(): Generator
public static function provideTestBuildValidServerString(): Generator
{
yield ['local', '', '', 'local'];
yield ['localhost', '', '', 'localhost'];
Expand Down Expand Up @@ -101,7 +101,7 @@ public function testBuildInvalidServerString($host, $user, $options): void
/**
* @return \Generator
*/
public function provideTestBuildInvalidServerString(): Generator
public static function provideTestBuildInvalidServerString(): Generator
{
yield ['hostname', '', ''];
yield ['hostname', '', '-p'];
Expand Down

0 comments on commit f909a42

Please sign in to comment.