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