| Total Lines | 22 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 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 |