| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function run() |
||
| 17 | { |
||
| 18 | $params = [ |
||
| 19 | 'vendor/bin/codecept', |
||
| 20 | 'run', |
||
| 21 | '--silent', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | $process = new Process($params); |
||
| 25 | |||
| 26 | $projectDirectory = $this->aliases->get('@root'); |
||
| 27 | $process |
||
| 28 | ->setWorkingDirectory($projectDirectory) |
||
| 29 | ->setTimeout(null) |
||
| 30 | ->run(); |
||
| 31 | |||
| 32 | return json_decode(file_get_contents( |
||
| 33 | // TODO: use relative path |
||
| 34 | $projectDirectory . DIRECTORY_SEPARATOR . 'tests' . DIRECTORY_SEPARATOR . 'output.json' |
||
| 35 | ), true); |
||
| 36 | } |
||
| 38 |