Skip to content

Commit

Permalink
[BC Break] Make data providers for abstract test cases static
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Feb 17, 2023
1 parent ca0b330 commit a09a949
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/InfobipTransportFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ public function createFactory(): TransportFactoryInterface
return new InfobipTransportFactory();
}

public function createProvider(): iterable
public static function createProvider(): iterable
{
yield [
'infobip://host.test?from=0611223344',
'infobip://authtoken@host.test?from=0611223344',
];
}

public function supportsProvider(): iterable
public static function supportsProvider(): iterable
{
yield [true, 'infobip://authtoken@default?from=0611223344'];
yield [false, 'somethingElse://authtoken@default?from=0611223344'];
}

public function missingRequiredOptionProvider(): iterable
public static function missingRequiredOptionProvider(): iterable
{
yield 'missing option: from' => ['infobip://authtoken@default'];
}

public function unsupportedSchemeProvider(): iterable
public static function unsupportedSchemeProvider(): iterable
{
yield ['somethingElse://authtoken@default?from=FROM'];
yield ['somethingElse://authtoken@default']; // missing "from" option
Expand Down

0 comments on commit a09a949

Please sign in to comment.