コード例 #1
0
ファイル: UnitDirectoryTestCase.php プロジェクト: rsms/phpab
 /**
  * Execute one subcase
  *
  * Associates the test with this case, then runs it and finally updates 
  * $this->allCasesPassed depending on the result of $case->passed()
  * 
  * @param  UnitTestCase
  * @return void
  */
 protected function executeTest(UnitTestCase $case)
 {
     $case->log = $this->log;
     $this->cases[] = $case;
     $case->test();
     if ($this->allCasesPassed && !$case->passed()) {
         $this->allCasesPassed = false;
     }
 }