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