/** * Run the groups tests. */ public function run() { $func = $this->func; $func($this); foreach ($this->tests as $test) { if ($this->testSuite->codeCoverageEnabled()) { $this->testSuite->getCodeCoverage()->start($this->name . ' / ' . $test->getName()); $test->run(); $this->testSuite->getCodeCoverage()->stop(); } else { $test->run(); } $this->failureCount = $this->failureCount + $test->getFailureCount(); $this->assertionCount = $this->assertionCount + $test->getAssertionCount(); } }