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 6cd8b29 commit 9e37adf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Sms77TransportFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function createFactory(): TransportFactoryInterface
return new Sms77TransportFactory();
}

public function createProvider(): iterable
public static function createProvider(): iterable
{
yield [
'sms77://host.test',
Expand All @@ -38,18 +38,18 @@ public function createProvider(): iterable
];
}

public function incompleteDsnProvider(): iterable
public static function incompleteDsnProvider(): iterable
{
yield 'missing api key' => ['sms77://host?from=TEST'];
}

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

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

0 comments on commit 9e37adf

Please sign in to comment.