features/bootstrap/BehatEventsContext.php
public static function getSubscribedEvents()
    {
        $storeEventListener = ['storeEvent', ListenerPriority::HIGH_PRIORITY];

        $beforeStepListenerList = [
            ['setNodeContext', ListenerPriority::HIGH_PRIORITY],
            $storeEventListener,
        ];
        $beforeScenarioListenerList = array_merge(
            [ ['setUp', ListenerPriority::HIGH_PRIORITY] ],
            $beforeStepListenerList
        );
        $afterListenerList = [
            $storeEventListener,
            ['checkEndEventExpectation', ListenerPriority::HIGH_PRIORITY],
            ['tearDown', ListenerPriority::HIGH_PRIORITY],
            ['setNodeContext', ListenerPriority::LOW_PRIORITY],
        ];
        return [
            ScenarioTested::BEFORE => $beforeScenarioListenerList,
            ExampleTested::BEFORE => $beforeScenarioListenerList,

            BackgroundTested::BEFORE => $beforeStepListenerList,
            StepTested::BEFORE => $beforeStepListenerList,

            StepTested::AFTER => $afterListenerList,
            BackgroundTested::AFTER => $afterListenerList,

            ScenarioTested::AFTER => $afterListenerList,
            ExampleTested::AFTER => $afterListenerList,
        ];
    }
public static function getSubscribedEvents()
    {
        $storeEventListener = ['storeEvent', ListenerPriority::HIGH_PRIORITY];

        $beforeStepListenerList = [
            ['setNodeContext', ListenerPriority::HIGH_PRIORITY],
            $storeEventListener,
        ];
        $beforeScenarioListenerList = array_merge(
            [ ['setUp', ListenerPriority::HIGH_PRIORITY] ],
            $beforeStepListenerList
        );
        $afterListenerList = [
            $storeEventListener,
            ['checkEndEventExpectation', ListenerPriority::HIGH_PRIORITY],
            ['tearDown', ListenerPriority::HIGH_PRIORITY],
            ['setNodeContext', ListenerPriority::LOW_PRIORITY],
        ];
        return [
            ScenarioTested::BEFORE => $beforeScenarioListenerList,
            ExampleTested::BEFORE => $beforeScenarioListenerList,

            BackgroundTested::BEFORE => $beforeStepListenerList,
            StepTested::BEFORE => $beforeStepListenerList,

            StepTested::AFTER => $afterListenerList,
            BackgroundTested::AFTER => $afterListenerList,

            ScenarioTested::AFTER => $afterListenerList,
            ExampleTested::AFTER => $afterListenerList,
        ];
    }
public static function getSubscribedEvents ( ) { $ storeEventListener = [ 'storeEvent' , ListenerPriority :: HIGH_PRIORITY ] ; $ beforeStepListenerList = [ [ 'setNodeContext' , ListenerPriority :: HIGH_PRIORITY ] , $ storeEventListener , ] ; $ beforeScenarioListenerList = array_merge ( [ [ 'setUp' , ListenerPriority :: HIGH_PRIORITY ] ] , $ beforeStepListenerList ) ; $ afterListenerList = [ $ storeEventListener , [ 'checkEndEventExpectation' , ListenerPriority :: HIGH_PRIORITY ] , [ 'tearDown' , ListenerPriority :: HIGH_PRIORITY ] , [ 'setNodeContext' , ListenerPriority :: LOW_PRIORITY ] , ] ; return [ ScenarioTested :: BEFORE => $ beforeScenarioListenerList , ExampleTested :: BEFORE => $ beforeScenarioListenerList , BackgroundTested :: BEFORE => $ beforeStepListenerList , StepTested :: BEFORE => $ beforeStepListenerList , StepTested :: AFTER => $ afterListenerList , BackgroundTested :: AFTER => $ afterListenerList , ScenarioTested :: AFTER => $ afterListenerList , ExampleTested :: AFTER => $ afterListenerList , ] ; }
{@inheritdoc}
{