1 | <?php |
||
12 | class ProcessFactory |
||
13 | { |
||
14 | /** @var string */ |
||
15 | private $phpUnitBin; |
||
16 | |||
17 | /** @var PHPUnitConfigFile */ |
||
18 | private $phpunitConfigFile; |
||
19 | |||
20 | /** |
||
21 | * ProcessFactory constructor. |
||
22 | * @param PHPUnitBinFile $phpUnitBinFile |
||
23 | */ |
||
24 | 9 | public function __construct(PHPUnitBinFile $phpUnitBinFile) |
|
28 | |||
29 | /** |
||
30 | * @param $testFilePath |
||
31 | * @return SymfonyProcessWrapper |
||
32 | * @throws \Exception |
||
33 | */ |
||
34 | 9 | public function createProcess($testFilePath) |
|
45 | |||
46 | /** |
||
47 | * @param PHPUnitConfigFile $configFile |
||
48 | */ |
||
49 | 8 | public function setConfigFile(PHPUnitConfigFile $configFile) |
|
53 | |||
54 | /** |
||
55 | * @param string $testFilePath |
||
56 | * @param string $uniqueId |
||
57 | * @return string |
||
58 | * |
||
59 | * @todo Separate with appends and prepends, maybe in multiple dedicate classes; |
||
60 | * we will need it for PHP7 code coverage with PHPDbg |
||
61 | */ |
||
62 | 8 | private function createCommandLine($testFilePath, $uniqueId) |
|
71 | |||
72 | /** |
||
73 | * @param string $testFilePath |
||
74 | * @return string |
||
75 | */ |
||
76 | 8 | private function createUniqueId($testFilePath) |
|
80 | } |
||
81 |