src/Behat/Behat/Output/Node/EventListener/AST/StepListener.php
private function printStepOnAfterEvent(Formatter $formatter, Event $event)
    {
        if (!$event instanceof AfterStepTested) {
            return;
        }

        $this->stepPrinter->printStep($formatter, $this->scenario, $event->getStep(), $event->getTestResult());

        if ($this->setupPrinter) {
            $this->setupPrinter->printTeardown($formatter, $event->getTeardown());
        }
    }
private function printStepOnAfterEvent(Formatter $formatter, Event $event)
    {
        if (!$event instanceof AfterStepTested) {
            return;
        }

        $this->stepPrinter->printStep($formatter, $this->scenario, $event->getStep(), $event->getTestResult());

        if ($this->setupPrinter) {
            $this->setupPrinter->printTeardown($formatter, $event->getTeardown());
        }
    }
private function printStepOnAfterEvent ( Formatter $ formatter , Event $ event ) { if ( ! $ event instanceof AfterStepTested ) { return ; } $ this -> stepPrinter -> printStep ( $ formatter , $ this -> scenario , $ event -> getStep ( ) , $ event -> getTestResult ( ) ) ; if ( $ this -> setupPrinter ) { $ this -> setupPrinter -> printTeardown ( $ formatter , $ event -> getTeardown ( ) ) ; } }
Prints step on AFTER event.

@param Formatter $formatter
@param Event     $event
Prints step on AFTER event .