src/Behat/Behat/Output/Node/EventListener/Statistics/HookStatsListener.php
private function captureHookStatsOnEvent(Event $event)
    {
        if ($event instanceof AfterSetup && $event->getSetup() instanceof HookedSetup) {
            $this->captureBeforeHookStats($event->getSetup());
        }

        if ($event instanceof AfterTested && $event->getTeardown() instanceof HookedTeardown) {
            $this->captureAfterHookStats($event->getTeardown());
        }
    }
private function captureHookStatsOnEvent(Event $event)
    {
        if ($event instanceof AfterSetup && $event->getSetup() instanceof HookedSetup) {
            $this->captureBeforeHookStats($event->getSetup());
        }

        if ($event instanceof AfterTested && $event->getTeardown() instanceof HookedTeardown) {
            $this->captureAfterHookStats($event->getTeardown());
        }
    }
private function captureHookStatsOnEvent ( Event $ event ) { if ( $ event instanceof AfterSetup && $ event -> getSetup ( ) instanceof HookedSetup ) { $ this -> captureBeforeHookStats ( $ event -> getSetup ( ) ) ; } if ( $ event instanceof AfterTested && $ event -> getTeardown ( ) instanceof HookedTeardown ) { $ this -> captureAfterHookStats ( $ event -> getTeardown ( ) ) ; } }
Captures hook stats on hooked event.

@param Event $event
Captures hook stats on hooked event .