Skip to content

Commit b44a53d

Browse files
OskarStarknicolas-grekas
authored andcommitted
[BC Break] Make data providers for abstract test cases static
1 parent 2bafbdf commit b44a53d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Tests/SmsapiTransportFactoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ public function createFactory(): TransportFactoryInterface
2525
return new SmsapiTransportFactory();
2626
}
2727

28-
public function createProvider(): iterable
28+
public static function createProvider(): iterable
2929
{
3030
yield [
3131
'smsapi://host.test?from=testFrom',
3232
'smsapi://[email protected]?from=testFrom',
3333
];
3434
}
3535

36-
public function supportsProvider(): iterable
36+
public static function supportsProvider(): iterable
3737
{
3838
yield [true, 'smsapi://host?from=testFrom'];
3939
yield [false, 'somethingElse://host?from=testFrom'];
4040
}
4141

42-
public function incompleteDsnProvider(): iterable
42+
public static function incompleteDsnProvider(): iterable
4343
{
4444
yield 'missing token' => ['smsapi://host.test?from=testFrom'];
4545
}
4646

47-
public function missingRequiredOptionProvider(): iterable
47+
public static function missingRequiredOptionProvider(): iterable
4848
{
4949
yield 'missing option: from' => ['smsapi://token@host'];
5050
}
5151

52-
public function unsupportedSchemeProvider(): iterable
52+
public static function unsupportedSchemeProvider(): iterable
5353
{
5454
yield ['somethingElse://token@host?from=testFrom'];
5555
yield ['somethingElse://token@host']; // missing "from" option

Tests/SmsapiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function createClient(int $statusCode, string $content): HttpClientInterf
5353
return new MockHttpClient(new MockResponse($content, ['http_code' => $statusCode]));
5454
}
5555

56-
public function responseProvider(): iterable
56+
public static function responseProvider(): iterable
5757
{
5858
$responses = [
5959
['status' => 200, 'content' => '{"error":101,"message":"Authorization failed"}', 'errorMessage' => 'Unable to send the SMS: "Authorization failed".'],

0 commit comments

Comments
 (0)