ParaTest\Runners\PHPUnit\ResultPrinter::processTestOverhead PHP Method

processTestOverhead() protected method

In some situations phpunit can return more tests then we expect and in that case this method correct total amount of tests so paratest progress will be auto corrected.
protected processTestOverhead ( integer $actualTestCount, integer $expectedTestCount )
$actualTestCount integer
$expectedTestCount integer
    protected function processTestOverhead($actualTestCount, $expectedTestCount)
    {
        $overhead = $actualTestCount - $expectedTestCount;
        if ($this->processSkipped) {
            if ($overhead > 0) {
                $this->totalCases += $overhead;
            } else {
                $this->totalSkippedOrIncomplete += -$overhead;
            }
        } else {
            $this->totalCases += $overhead;
        }
    }