| 1 | <?php |
||
| 14 | class CommandLine |
||
| 15 | { |
||
| 16 | /** @var PHPUnitBinFile */ |
||
| 17 | protected $phpUnitBin; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * TestCliCommand constructor. |
||
| 21 | * @param PHPUnitBinFile $phpUnitBin |
||
| 22 | */ |
||
| 23 | 36 | public function __construct(PHPUnitBinFile $phpUnitBin) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return string[] |
||
| 30 | */ |
||
| 31 | 30 | public function getExecutable(): array |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param PHPUnitConfig $config |
||
| 38 | * @return array |
||
| 39 | * @throws \RuntimeException When the config handling fails |
||
| 40 | */ |
||
| 41 | 32 | public function getOptions(PHPUnitConfig $config): array |
|
| 54 | |||
| 55 | 6 | private function buildPhpunitOptionString(PHPUnitOption $option): string |
|
| 64 | |||
| 65 | 16 | public function getSpecificOptions(string $testFilename): array |
|
| 69 | } |
||
| 70 |