private runSuite ( pho\Suite\Suite $suite ) | ||
$suite | pho\Suite\Suite | The suite to run |
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'));
}