| 1 | <?php |
||
| 11 | class ProcessFactory |
||
| 12 | { |
||
| 13 | /** @var CliCommandInterface */ |
||
| 14 | private $cliCommand; |
||
| 15 | |||
| 16 | /** @var PHPUnitConfig */ |
||
| 17 | private $phpunitConfig; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * ProcessFactory constructor. |
||
| 21 | * @param CliCommandInterface $cliCommand |
||
| 22 | */ |
||
| 23 | 11 | public function __construct(CliCommandInterface $cliCommand) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param $testFilePath |
||
| 30 | * @return SymfonyProcessWrapper |
||
| 31 | * @throws \Exception |
||
| 32 | */ |
||
| 33 | 11 | public function createProcess($testFilePath) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $testFilePath |
||
| 43 | * @param string $uniqueId |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 11 | private function createCommandLine($testFilePath, $uniqueId) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $testFilePath |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 11 | private function createUniqueId($testFilePath) |
|
| 61 | |||
| 62 | 11 | public function setPHPUnitConfig(PHPUnitConfig $phpunitConfig) |
|
| 66 | } |
||
| 67 |