public static function getSubscribedEvents()
    {
        // Set high priority to have it at beginning
        $hightPriority = 999999999;
        // Set low priority to have it at end
        $lowPriority = $hightPriority*-1;
        return [
            //Set and check at beginning
            ScenarioTested::BEFORE => [
                ['setUp', $hightPriority],
                ['setNodeContext', $hightPriority],
            ],
            ExampleTested::BEFORE => [
                ['setUp', $hightPriority],
                ['setNodeContext', $hightPriority],
            ],

            BackgroundTested::BEFORE => [
                ['setNodeContext', $hightPriority],
            ],
            StepTested::BEFORE => [
                ['setNodeContext', $hightPriority],
            ],

            StepTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],
            BackgroundTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],

            ScenarioTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],
            ExampleTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],
        ];
    }
public static function getSubscribedEvents()
    {
        // Set high priority to have it at beginning
        $hightPriority = 999999999;
        // Set low priority to have it at end
        $lowPriority = $hightPriority*-1;
        return [
            //Set and check at beginning
            ScenarioTested::BEFORE => [
                ['setUp', $hightPriority],
                ['setNodeContext', $hightPriority],
            ],
            ExampleTested::BEFORE => [
                ['setUp', $hightPriority],
                ['setNodeContext', $hightPriority],
            ],

            BackgroundTested::BEFORE => [
                ['setNodeContext', $hightPriority],
            ],
            StepTested::BEFORE => [
                ['setNodeContext', $hightPriority],
            ],

            StepTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],
            BackgroundTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],

            ScenarioTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],
            ExampleTested::AFTER => [
                ['checkEndEventExpectation', $hightPriority],
                ['tearDown', $hightPriority],
                ['setNodeContext', $lowPriority],
            ],
        ];
    }
{@inheritdoc}