Skip to content

Commit d4deb51

Browse files
OskarStarknicolas-grekas
authored andcommitted
[BC Break] Make data providers for abstract test cases static
1 parent 0e583c3 commit d4deb51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/MessageMediaTransportFactoryTest.php

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

28-
public function createProvider(): iterable
28+
public static function createProvider(): iterable
2929
{
3030
yield [
3131
'messagemedia://host.test',
@@ -38,13 +38,13 @@ public function createProvider(): iterable
3838
];
3939
}
4040

41-
public function supportsProvider(): iterable
41+
public static function supportsProvider(): iterable
4242
{
4343
yield [true, 'messagemedia://apiKey:apiSecret@default'];
4444
yield [false, 'somethingElse://apiKey:apiSecret@default'];
4545
}
4646

47-
public function unsupportedSchemeProvider(): iterable
47+
public static function unsupportedSchemeProvider(): iterable
4848
{
4949
yield ['somethingElse://apiKey:apiSecret@default'];
5050
}

Tests/MessageMediaTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testExceptionIsThrownWhenHttpSendFailed(int $statusCode, string
7272
$transport->send(new SmsMessage('+61491570156', 'Hello!'));
7373
}
7474

75-
public function exceptionIsThrownWhenHttpSendFailedProvider(): iterable
75+
public static function exceptionIsThrownWhenHttpSendFailedProvider(): iterable
7676
{
7777
yield [503, '', 'Unable to send the SMS: "Unknown reason".'];
7878
yield [500, '{"details": ["Something went wrong."]}', 'Unable to send the SMS: "Something went wrong.".'];

0 commit comments

Comments
 (0)