Skip to content

Commit 099e948

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Translation][Mailer] Convert `$this` calls to static ones in data providers [BC Break] Make data providers for abstract test cases static use TestCase suffix for abstract tests in Tests directories Fix Request locale property doc types Bump absolute lowest dep to 4.4
2 parents 4b2b134 + d4deb51 commit 099e948

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
@@ -21,7 +21,7 @@ public function createFactory(): MessageMediaTransportFactory
2121
return new MessageMediaTransportFactory();
2222
}
2323

24-
public function createProvider(): iterable
24+
public static function createProvider(): iterable
2525
{
2626
yield [
2727
'messagemedia://host.test',
@@ -34,13 +34,13 @@ public function createProvider(): iterable
3434
];
3535
}
3636

37-
public function supportsProvider(): iterable
37+
public static function supportsProvider(): iterable
3838
{
3939
yield [true, 'messagemedia://apiKey:apiSecret@default'];
4040
yield [false, 'somethingElse://apiKey:apiSecret@default'];
4141
}
4242

43-
public function unsupportedSchemeProvider(): iterable
43+
public static function unsupportedSchemeProvider(): iterable
4444
{
4545
yield ['somethingElse://apiKey:apiSecret@default'];
4646
}

Tests/MessageMediaTransportTest.php

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

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

0 commit comments

Comments
 (0)