Skip to content

Commit 0a5211d

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/ZulipTransportFactoryTest.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 ZulipTransportFactory();
2626
}
2727

28-
public function createProvider(): iterable
28+
public static function createProvider(): iterable
2929
{
3030
yield [
3131
'zulip://host.test?channel=testChannel',
3232
'zulip://email:token@host.test?channel=testChannel',
3333
];
3434
}
3535

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

42-
public function incompleteDsnProvider(): iterable
42+
public static function incompleteDsnProvider(): iterable
4343
{
4444
yield 'missing email or token' => ['zulip://testOneOfEmailOrToken@host.test?channel=testChannel'];
4545
}
4646

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

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

0 commit comments

Comments
 (0)