public function afterEach(\Closure $closure) { $afterEach = new Hook($closure, $this->current); $this->current->setHook('afterEach', $afterEach); }