public function __construct(InvocationContext $invocation_context, $fn = null, $name = null) { $this->invocation_context = $invocation_context; $this->parent_block = $invocation_context->activeBlock(); $this->fn = $fn; $this->name = $name; }
public static function after_all($fn) { $test_method = new AfterAllHook(InvocationContext::getActive(), $fn); $test_method->addToParent(); return $test_method; }