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