예제 #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());
 }
예제 #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());
 }