src/Suite/Suite.php
public function getHook($key)
    {
        if (isset($this->hooks[$key])) {
            return $this->hooks[$key];
        }

        return null;
    }
public function getHook($key)
    {
        if (isset($this->hooks[$key])) {
            return $this->hooks[$key];
        }

        return null;
    }
public function getHook ( $ key ) { if ( isset ( $ this -> hooks [ $ key ] ) ) { return $ this -> hooks [ $ key ] ; } return null ; }
Returns the hook found at the specified key. Usually one of before,
after, beforeEach, or afterEach.

@param  string $key The key for the hook
@return Hook   The given hook
Returns the hook found at the specified key . Usually one of before after beforeEach or afterEach .