/** * Write a suite.end event on the message. * * @param Suite $suite * @return void */ public function onSuiteEnd(Suite $suite) { if (!$suite->getDescription()) { return; } $this->message->setTest($suite)->setEvent('suite.end')->write(); }
/** * @param Suite $suite */ public function onSuiteStart(Suite $suite) { if ($suite != $this->root) { ++$this->column; $this->output->writeln(sprintf('%s%s', $this->indent(), $suite->getDescription())); } }
/** * @param Suite $suite */ public function onSuiteStart(Suite $suite) { $suite->getScope()->peridotAddChildScope(new ProphecyScope()); $description = $suite->getDescription(); if (class_exists($description)) { $suite->addSetupFunction(function () use($description) { $prophet = $this->getProphet(); $this->subject = $prophet->prophesize($description); }); $suite->addTearDownFunction(function () { $this->clearProphet(); }); } }