src/Behat/Behat/Output/Node/EventListener/AST/OutlineListener.php
private function printExampleFooterOnAfterExampleEvent(Formatter $formatter, Event $event, $eventName)
    {
        if (!$event instanceof AfterScenarioTested || ExampleTested::AFTER !== $eventName) {
            return;
        }

        $this->examplePrinter->printFooter($formatter, $event->getTestResult());
        $this->exampleSetupPrinter->printTeardown($formatter, $event->getTeardown());

        $this->example = null;
    }
private function printExampleFooterOnAfterExampleEvent(Formatter $formatter, Event $event, $eventName)
    {
        if (!$event instanceof AfterScenarioTested || ExampleTested::AFTER !== $eventName) {
            return;
        }

        $this->examplePrinter->printFooter($formatter, $event->getTestResult());
        $this->exampleSetupPrinter->printTeardown($formatter, $event->getTeardown());

        $this->example = null;
    }
private function printExampleFooterOnAfterExampleEvent ( Formatter $ formatter , Event $ event , $ eventName ) { if ( ! $ event instanceof AfterScenarioTested || ExampleTested :: AFTER !== $ eventName ) { return ; } $ this -> examplePrinter -> printFooter ( $ formatter , $ event -> getTestResult ( ) ) ; $ this -> exampleSetupPrinter -> printTeardown ( $ formatter , $ event -> getTeardown ( ) ) ; $ this -> example = null ; }
Prints example footer on example AFTER event.

@param Formatter $formatter
@param Event     $event
@param string    $eventName
Prints example footer on example AFTER event .