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