public function beforeSuite(Suite $suite) { if (empty($suite->getParent())) { $this->console->writeLn(''); } $this->depth[] = $suite->getTitle(); //print_r($this->depth);echo "\r\n"; $this->console->writeLn("\n##teamcity[testSuiteStarted name='" . $suite->getTitle() . "']"); $this->registerBeginTime(md5($suite->getTitle())); return parent::beforeSuite($suite); }
/** * Runs the afterEach hooks of the given suite and its parent suites * recursively. They are ran in the order in the opposite order, from inner * suites to outer suites. * * @param Suite $suite The suite with the hooks to run */ private function runAfterEachHooks(Suite $suite) { $this->runRunnable($suite->getHook('afterEach')); if ($suite->getParent()) { $this->runAfterEachHooks($suite->getParent()); } }