예제 #1
0
 /**
  * @param  PHPUnit_Framework_TestResult  $result
  * @access protected
  */
 protected function printFooter(PHPUnit_Framework_TestResult $result)
 {
     if ($result->wasSuccessful()) {
         printf("\nOK (%d test%s)\n", $result->runCount(), $result->runCount() == 1 ? '' : 's');
     } else {
         printf("\nFAILURES!!!\nTests run: %d, Failures: %d, Errors: %d.\n", $result->runCount(), $result->failureCount(), $result->errorCount());
     }
 }