/** * Prints scenario/background footer on AFTER event. * * @param Formatter $formatter * @param ScenarioLikeTested|AfterTested $event * @param string $eventName */ private function printFooterOnAfterEvent(Formatter $formatter, ScenarioLikeTested $event, $eventName) { if ($this->afterEventName !== $eventName || !$event instanceof AfterTested) { return; } if ($this->setupPrinter) { $this->setupPrinter->printTeardown($formatter, $event->getTeardown()); } $this->scenarioPrinter->printFooter($formatter, $event->getTestResult()); }
/** * {@inheritdoc} */ public function printHeader(Formatter $formatter, FeatureNode $feature, OutlineNode $outline) { $this->scenarioPrinter->printHeader($formatter, $feature, $outline); $this->printExamplesSteps($formatter, $outline, $outline->getSteps()); $this->printExamplesTableHeader($formatter->getOutputPrinter(), $outline->getExampleTable()); }