Example #1
0
 /**
  * A test suite ended.
  *
  * @param  PHPUnit_Framework_TestSuite $suite
  * @since  Method available since Release 2.2.0
  */
 public function endTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     // Only act upon the end of the top-most suite
     if (!$suite->getParent()) {
         $count = $this->errorCount + $this->failCount;
         $delay = floor(0.15 * 1000000);
         for ($i = 0; $i < $count; $i++) {
             echo "";
             //usleep($delay);
             usleep($delay * (pow(0.91, $i) + 0.2));
         }
     }
 }