Пример #1
0
 public function __construct(\Closure $closure)
 {
     parent::__construct(InvocationContext::getActive(), $closure, $this->name);
 }
Пример #2
0
 public function __construct($name, \Closure $closure)
 {
     $invocationContext = InvocationContext::getAndAssertActiveBlock(\PSpec\Blocks\Describe::class);
     parent::__construct($invocationContext, $closure, $name);
 }