startTime = microtime( true ); } public function allFailures(): int { $this->failures = $this->passedTestsUnexpected + $this->failedTestsUnexpected + $this->loggedErrorCount; return $this->failures; } /** * @param Stats $other */ public function accum( Stats $other ): void { $this->passedTests += $other->passedTests; $this->passedTestsUnexpected += $other->passedTestsUnexpected; $this->failedTests += $other->failedTests; $this->failedTestsUnexpected += $other->failedTestsUnexpected; $this->loggedErrorCount += $other->loggedErrorCount; $this->failures += $other->failures; } }