src/Behat/Behat/Output/Node/EventListener/Flow/FirstBackgroundFiresFirstListener.php
private function fireDelayedEventsOnAfterBackground(Formatter $formatter, $eventName)
    {
        if (BackgroundTested::AFTER !== $eventName) {
            return;
        }

        foreach ($this->delayedUntilBackgroundEnd as $eventInfo) {
            list($event, $eventName) = $eventInfo;

            $this->descendant->listenEvent($formatter, $event, $eventName);
        }

        $this->delayedUntilBackgroundEnd = array();
    }
private function fireDelayedEventsOnAfterBackground(Formatter $formatter, $eventName)
    {
        if (BackgroundTested::AFTER !== $eventName) {
            return;
        }

        foreach ($this->delayedUntilBackgroundEnd as $eventInfo) {
            list($event, $eventName) = $eventInfo;

            $this->descendant->listenEvent($formatter, $event, $eventName);
        }

        $this->delayedUntilBackgroundEnd = array();
    }
private function fireDelayedEventsOnAfterBackground ( Formatter $ formatter , $ eventName ) { if ( BackgroundTested :: AFTER !== $ eventName ) { return ; } foreach ( $ this -> delayedUntilBackgroundEnd as $ eventInfo ) { list ( $ event , $ eventName ) = $ eventInfo ; $ this -> descendant -> listenEvent ( $ formatter , $ event , $ eventName ) ; } $ this -> delayedUntilBackgroundEnd = array ( ) ; }
Fires delayed events on AFTER background event.

@param Formatter $formatter
@param string    $eventName
Fires delayed events on AFTER background event .