protected function runGroup(Block $block) { foreach ($block->tests() as $test) { $this->runTest($test); } foreach ($block->describes() as $describe) { $this->runDescribe($describe); } }
public function addToParent() { if ($this->parent) { $this->parent->addChild($this); } }
public function __construct($name, \Closure $closure) { Block::__construct(new InvocationContext(), $closure, $name); }
public function __construct($name, \Closure $closure) { parent::__construct(InvocationContext::getActive(), $closure, $name); }
public function isIncomplete() { return $this->invoked_block->getAssertions() == 0; }