src/commands/NetteTester.php 1 location
|
@@ 98-103 (lines=6) @@
|
| 95 |
|
'threads' => '-j', |
| 96 |
|
'mode' => '-o', |
| 97 |
|
]; |
| 98 |
|
foreach($optionalSwitches as $name => $switch) { |
| 99 |
|
if(isset($this->options[$name])) { |
| 100 |
|
$cmd .= $switch . ' '; |
| 101 |
|
$cmd .= escapeshellarg($this->options[$name]) . ' '; |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
$currdir = getcwd(); |
| 105 |
|
$result = @chdir($this->workingDir); |
| 106 |
|
if (!$result) { |
src/commands/PhpUnit.php 1 location
|
@@ 101-106 (lines=6) @@
|
| 98 |
|
$optionalSwitches = [ |
| 99 |
|
'configFile' => '--configuration', |
| 100 |
|
]; |
| 101 |
|
foreach($optionalSwitches as $name => $switch) { |
| 102 |
|
if(isset($this->options[$name])) { |
| 103 |
|
$cmd .= $switch . ' '; |
| 104 |
|
$cmd .= escapeshellarg($this->options[$name]) . ' '; |
| 105 |
|
} |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
$currdir = getcwd(); |
| 109 |
|
$result = @chdir($this->workingDir); |