private function runSuite(Suite $suite) { $this->runRunnable($suite->getHook('before')); $this->reporter->beforeSuite($suite); // Run the specs $this->runSpecs($suite); // Run nested suites foreach ($suite->getSuites() as $nestedSuite) { $this->runSuite($nestedSuite); } $this->reporter->afterSuite($suite); $this->runRunnable($suite->getHook('after')); }