Beispiel #1
0
 public function __construct(InvocationContext $invocationContext, $fn = null, $name = null)
 {
     $this->invocationContext = $invocationContext;
     $this->parent = $invocationContext->activeBlock();
     $this->fn = $fn;
     $this->name = $name;
 }
Beispiel #2
0
 public function __construct($name, \Closure $closure)
 {
     parent::__construct(InvocationContext::getActive(), $closure, $name);
 }
Beispiel #3
0
 public function __construct($name, \Closure $closure)
 {
     $invocationContext = InvocationContext::getAndAssertActiveBlock(\PSpec\Blocks\Describe::class);
     parent::__construct($invocationContext, $closure, $name);
 }