Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/PhpunitTestEngine.php
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | foreach ($this->affectedTests as $class_path => $test_path) { | ||||
| $clover = null; | $clover = null; | ||||
| if ($this->getEnableCoverage() !== false) { | if ($this->getEnableCoverage() !== false) { | ||||
| $clover_tmp = new TempFile(); | $clover_tmp = new TempFile(); | ||||
| $clover = csprintf('--coverage-clover %s', $clover_tmp); | $clover = csprintf('--coverage-clover %s', $clover_tmp); | ||||
| } | } | ||||
| $config = $this->configFile ? csprintf('-c %s', $this->configFile) : null; | $config = $this->configFile ? csprintf('-c %s', $this->configFile) : null; | ||||
| $stderr = "-d display_errors=stderr"; | $stderr = '-d display_errors=stderr'; | ||||
| $futures[$test_path] = new ExecFuture('%C %C %C --log-json %s %C %s', | $futures[$test_path] = new ExecFuture('%C %C %C --log-json %s %C %s', | ||||
| $this->phpunitBinary, $config, $stderr, $json_tmp, $clover, $test_path); | $this->phpunitBinary, $config, $stderr, $json_tmp, $clover, $test_path); | ||||
| $tmpfiles[$test_path] = array( | $tmpfiles[$test_path] = array( | ||||
| 'json' => $json_tmp, | 'json' => $json_tmp, | ||||
| 'clover' => $clover_tmp, | 'clover' => $clover_tmp, | ||||
| ); | ); | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||