ParaTest\Runners\PHPUnit\Runner::testIsStillRunning PHP Method

testIsStillRunning() private method

Returns whether or not a test has finished being executed. If it has, this method also halts a test process - optionally throwing an exception if a fatal error has occurred - prints feedback, and updates the overall exit code
private testIsStillRunning ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) : boolean
$test ParaTest\Runners\PHPUnit\ExecutableTest
return 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;
    }