private testIsStillRunning ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) : boolean | ||
$test | ParaTest\Runners\PHPUnit\ExecutableTest | |
리턴 | boolean |
private function testIsStillRunning($test)
{
if (!$test->isDoneRunning()) {
return true;
}
$this->setExitCode($test);
$test->stop();
if ($this->options->stopOnFailure && $test->getExitCode() > 0) {
$this->pending = array();
}
if (static::PHPUNIT_FATAL_ERROR === $test->getExitCode()) {
$errorOutput = $test->getStderr();
if (!$errorOutput) {
$errorOutput = $test->getStdout();
}
throw new \Exception($errorOutput);
}
$this->printer->printFeedback($test);
if ($this->hasCoverage()) {
$this->addCoverage($test);
}
return false;
}