Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 /**
  * {@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());
 }