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