pho\Runner\Runner::afterEach PHP Method

afterEach() public method

Constructs a new Hook, defining a closure to be ran prior to each of the parent suite's nested suites and specs.
public afterEach ( Closure $closure )
$closure Closure The closure to be ran after each spec
    public function afterEach(\Closure $closure)
    {
        $afterEach = new Hook($closure, $this->current);
        $this->current->setHook('afterEach', $afterEach);
    }