Beispiel #1
0
 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;
 }
Beispiel #2
0
 public static function after_all($fn)
 {
     $test_method = new AfterAllHook(InvocationContext::getActive(), $fn);
     $test_method->addToParent();
     return $test_method;
 }