shouldStop() 공개 메소드

Checks whether the test run should stop.
public shouldStop ( ) : boolean
리턴 boolean
예제 #1
0
 /**
  * Runs the decorated test and collects the
  * result in a TestResult.
  *
  * @param  PHPUnit_Framework_TestResult $result
  * @access public
  */
 public function run(PHPUnit_Framework_TestResult $result)
 {
     for ($i = 0; $i < $this->timesRepeat && !$result->shouldStop(); $i++) {
         $this->test->run($result);
     }
 }
예제 #2
0
 /**
  * Runs the tests and collects their result in a TestResult.
  *
  * @param  PHPUnit_Framework_TestResult $result
  * @access public
  */
 public function run(PHPUnit_Framework_TestResult $result)
 {
     foreach ($this->fTests as $test) {
         if ($result->shouldStop()) {
             break;
         }
         $this->runTest($test, $result);
     }
 }