Conditions | 1 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testGetSuites(): void |
||
17 | { |
||
18 | $testSuitesFinder = new ChainTestSuitesFinder(); |
||
19 | $testSuitesFinder->registerFinder(new class implements ITestSuitesFinder |
||
20 | { |
||
21 | public function getSuites(string $folder): array |
||
|
|||
22 | { |
||
23 | return [ |
||
24 | "aaa", "bbb", "ccc", |
||
25 | ]; |
||
26 | } |
||
27 | }); |
||
28 | $testSuitesFinder->registerFinder(new class implements ITestSuitesFinder |
||
29 | { |
||
30 | public function getSuites(string $folder): array |
||
31 | { |
||
32 | return [ |
||
33 | "aaa", "ddd", |
||
34 | ]; |
||
35 | } |
||
36 | }); |
||
37 | $this->assertSame(["aaa", "bbb", "ccc", "ddd", ], $testSuitesFinder->getSuites("")); |
||
38 | } |
||
40 |