| Conditions | 5 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5.1502 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | public function getSuites(string $folder): array |
|
| 14 | { |
||
| 15 | 1 | $suites = []; |
|
| 16 | 1 | $folder = (string) realpath($folder); |
|
| 17 | 1 | $classMap = require \findVendorDirectory() . "/composer/autoload_classmap.php"; |
|
| 18 | 1 | foreach ($classMap as $class => $file) { |
|
| 19 | 1 | $file = (string) realpath($file); |
|
| 20 | 1 | if (!str_starts_with($file, $folder) || !str_ends_with($file, static::FILENAME_SUFFIX)) { |
|
| 21 | 1 | continue; |
|
| 22 | } |
||
| 23 | if ($this->isTestSuite($class)) { |
||
| 24 | $suites[] = $class; |
||
| 25 | } |
||
| 26 | } |
||
| 27 | 1 | return $suites; |
|
| 28 | } |
||
| 30 |