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

        $this->example = $event->getScenario();

        $this->exampleSetupPrinter->printSetup($formatter, $event->getSetup());
        $this->examplePrinter->printHeader($formatter, $event->getFeature(), $this->example);
    }
private function printExampleHeaderOnBeforeExampleEvent(Formatter $formatter, Event $event)
    {
        if (!$event instanceof AfterScenarioSetup) {
            return;
        }

        $this->example = $event->getScenario();

        $this->exampleSetupPrinter->printSetup($formatter, $event->getSetup());
        $this->examplePrinter->printHeader($formatter, $event->getFeature(), $this->example);
    }
private function printExampleHeaderOnBeforeExampleEvent ( Formatter $ formatter , Event $ event ) { if ( ! $ event instanceof AfterScenarioSetup ) { return ; } $ this -> example = $ event -> getScenario ( ) ; $ this -> exampleSetupPrinter -> printSetup ( $ formatter , $ event -> getSetup ( ) ) ; $ this -> examplePrinter -> printHeader ( $ formatter , $ event -> getFeature ( ) , $ this -> example ) ; }
Prints example header on example BEFORE event.

@param Formatter $formatter
@param Event     $event
Prints example header on example BEFORE event .