/** * Ran before the containing test suite is invoked. * * @param Suite $suite The test suite before which to run this method */ public function beforeSuite(Suite $suite) { if ($this->depth == 0) { $this->console->writeLn(''); } $leftPad = str_repeat(' ', self::TAB_SIZE * $this->depth); $title = $suite->getTitle(); $this->console->writeLn($leftPad . $title); $this->depth += 1; }
public function afterSuite(Suite $suite) { $this->console->writeLn("##teamcity[testSuiteFinished name='" . $suite->getTitle() . "' duration='" . $this->getDurationTime(md5($suite->getTitle())) . "']"); array_pop($this->depth); return parent::beforeSuite($suite); }