pho\Runner\Runner::before PHP Méthode

before() public méthode

Constructs a new Hook, defining a closure to be ran prior to the parent suite's closure.
public before ( Closure $closure )
$closure Closure The closure to be ran before the suite
    public function before(\Closure $closure)
    {
        $before = new Hook($closure, $this->current);
        $this->current->setHook('before', $before);
    }