Skip to content

Commit f0a8443

Browse files
committed
Add more precise types in reusable test cases
1 parent a59a377 commit f0a8443

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Test/TransportFactoryTestCase.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,27 @@ abstract class TransportFactoryTestCase extends TestCase
3737

3838
abstract public function getFactory(): TransportFactoryInterface;
3939

40+
/**
41+
* @psalm-return iterable<array{0: Dsn, 1: bool}>
42+
*/
4043
abstract public static function supportsProvider(): iterable;
4144

45+
/**
46+
* @psalm-return iterable<array{0: Dsn, 1: TransportInterface}>
47+
*/
4248
abstract public static function createProvider(): iterable;
4349

50+
/**
51+
* @psalm-return iterable<array{0: Dsn, 1?: string|null}>
52+
*/
4453
public static function unsupportedSchemeProvider(): iterable
4554
{
4655
return [];
4756
}
4857

58+
/**
59+
* @psalm-return iterable<array{0: Dsn}>
60+
*/
4961
public static function incompleteDsnProvider(): iterable
5062
{
5163
return [];

0 commit comments

Comments
 (0)