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