Skip to content

Commit ef4e9c7

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 0aea286 + b44a53d commit ef4e9c7

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

24-
public function createProvider(): iterable
24+
public static function createProvider(): iterable
2525
{
2626
yield [
2727
'smsapi://host.test?from=testFrom',
@@ -69,25 +69,25 @@ public function createProvider(): iterable
6969
];
7070
}
7171

72-
public function supportsProvider(): iterable
72+
public static function supportsProvider(): iterable
7373
{
7474
yield [true, 'smsapi://host?from=testFrom'];
7575
yield [true, 'smsapi://host?from=testFrom&fast=1'];
7676
yield [true, 'smsapi://host?from=testFrom&test=1'];
7777
yield [false, 'somethingElse://host?from=testFrom'];
7878
}
7979

80-
public function incompleteDsnProvider(): iterable
80+
public static function incompleteDsnProvider(): iterable
8181
{
8282
yield 'missing token' => ['smsapi://host.test?from=testFrom'];
8383
}
8484

85-
public function missingRequiredOptionProvider(): iterable
85+
public static function missingRequiredOptionProvider(): iterable
8686
{
8787
yield 'missing option: from' => ['smsapi://token@host'];
8888
}
8989

90-
public function unsupportedSchemeProvider(): iterable
90+
public static function unsupportedSchemeProvider(): iterable
9191
{
9292
yield ['somethingElse://token@host?from=testFrom'];
9393
yield ['somethingElse://token@host']; // missing "from" option

Tests/SmsapiTransportTest.php

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

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

0 commit comments

Comments
 (0)