src/Behat/Behat/Output/Node/EventListener/JUnit/JUnitFeatureElementListener.php
private function captureScenarioEvent(ScenarioTested $event)
    {
        if ($event instanceof AfterScenarioTested) {
            $this->afterScenarioTestedEvents[$event->getScenario()->getLine()] = array(
                'event'             => $event,
                'step_events'       => $this->afterStepTestedEvents,
                'step_setup_events' => $this->afterStepSetupEvents,
            );

            $this->afterStepTestedEvents = array();
            $this->afterStepSetupEvents = array();
        }
    }
private function captureScenarioEvent(ScenarioTested $event)
    {
        if ($event instanceof AfterScenarioTested) {
            $this->afterScenarioTestedEvents[$event->getScenario()->getLine()] = array(
                'event'             => $event,
                'step_events'       => $this->afterStepTestedEvents,
                'step_setup_events' => $this->afterStepSetupEvents,
            );

            $this->afterStepTestedEvents = array();
            $this->afterStepSetupEvents = array();
        }
    }
private function captureScenarioEvent ( ScenarioTested $ event ) { if ( $ event instanceof AfterScenarioTested ) { $ this -> afterScenarioTestedEvents [ $ event -> getScenario ( ) -> getLine ( ) ] = array ( 'event' => $ event , 'step_events' => $ this -> afterStepTestedEvents , 'step_setup_events' => $ this -> afterStepSetupEvents , ) ; $ this -> afterStepTestedEvents = array ( ) ; $ this -> afterStepSetupEvents = array ( ) ; } }
Captures scenario tested event.

@param ScenarioTested $event
Captures scenario tested event .