コード例 #1
0
ファイル: SuiteRunner.php プロジェクト: jasonmccreary/pspec
 protected function runGroup(Block $block)
 {
     foreach ($block->tests() as $test) {
         $this->runTest($test);
     }
     foreach ($block->describes() as $describe) {
         $this->runDescribe($describe);
     }
 }
コード例 #2
0
ファイル: Block.php プロジェクト: jasonmccreary/pspec
 public function addToParent()
 {
     if ($this->parent) {
         $this->parent->addChild($this);
     }
 }
コード例 #3
0
ファイル: Suite.php プロジェクト: jasonmccreary/pspec
 public function __construct($name, \Closure $closure)
 {
     Block::__construct(new InvocationContext(), $closure, $name);
 }
コード例 #4
0
ファイル: Describe.php プロジェクト: jasonmccreary/pspec
 public function __construct($name, \Closure $closure)
 {
     parent::__construct(InvocationContext::getActive(), $closure, $name);
 }
コード例 #5
0
ファイル: Result.php プロジェクト: jasonmccreary/pspec
 public function isIncomplete()
 {
     return $this->invoked_block->getAssertions() == 0;
 }