shouldStop() public method

Checks whether the test run should stop.
public shouldStop ( ) : boolean
return boolean
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }