@@ 133-142 (lines=10) @@ | ||
130 | * |
|
131 | * @return int |
|
132 | */ |
|
133 | public function runPhpunit($command, array $env = [], \Closure $callback = null) |
|
134 | { |
|
135 | $command = sprintf('%s %s %s', |
|
136 | $this->configuration->getPhpunitPath(), |
|
137 | $command, |
|
138 | $this->flags($this->input, $this->output) |
|
139 | ); |
|
140 | ||
141 | return $this->run($command, false, $env, $callback); |
|
142 | } |
|
143 | ||
144 | /** |
|
145 | * @param string $command |
|
@@ 150-159 (lines=10) @@ | ||
147 | * |
|
148 | * @return Process |
|
149 | */ |
|
150 | public function getPhpunitProcess($command, array $env = []) : Process |
|
151 | { |
|
152 | $command = sprintf('%s %s %s', |
|
153 | $this->configuration->getPhpunitPath(), |
|
154 | $command, |
|
155 | $this->flags($this->input, $this->output) |
|
156 | ); |
|
157 | ||
158 | return $this->getProcess($command, $env); |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * @param string $command |