/**
  * Called when a test run finishes.
  *
  * @param   unittest.TestSuite suite
  * @param   unittest.TestResult result
  */
 public function testRunFinished(TestSuite $suite, TestResult $result)
 {
     $this->writeStatus();
     $this->out->writeLine();
     // Summary output
     $this->out->writeLinef("\n%s: %d/%d run (%d skipped), %d succeeded, %d failed", $result->failureCount() > 0 ? 'FAIL' : 'OK', $result->runCount(), $result->count(), $result->skipCount(), $result->successCount(), $result->failureCount());
     $this->out->writeLinef('Memory used: %.2f kB (%.2f kB peak)', Runtime::getInstance()->memoryUsage() / 1024, Runtime::getInstance()->peakMemoryUsage() / 1024);
     $this->out->writeLinef('Time taken: %.3f seconds', $result->elapsed());
 }
 /**
  * Called when a test run finishes.
  *
  * @param   unittest.TestSuite suite
  * @param   unittest.TestResult result
  */
 public function testRunFinished(TestSuite $suite, TestResult $result)
 {
     $this->out->writeLine(']');
     // Show failed test details
     $fail = FALSE;
     if ($result->failureCount() > 0) {
         $this->out->writeLine();
         foreach ($result->failed as $failure) {
             $this->out->writeLine('F ', $failure);
         }
         $fail = TRUE;
     }
     $this->out->writeLinef("\n%s%s: %d/%d run (%d skipped), %d succeeded, %d failed%s", $this->colored ? $fail ? "" : "" : '', $fail ? 'FAIL' : 'OK', $result->runCount(), $result->count(), $result->skipCount(), $result->successCount(), $result->failureCount(), $this->colored ? "" : '');
     $this->out->writeLinef('Memory used: %.2f kB (%.2f kB peak)', Runtime::getInstance()->memoryUsage() / 1024, Runtime::getInstance()->peakMemoryUsage() / 1024);
     $this->out->writeLinef('Time taken: %.3f seconds', $result->elapsed());
 }
 /**
  * Called when a test run finishes.
  *
  * @param   unittest.TestSuite suite
  * @param   unittest.TestResult result
  */
 public function testRunFinished(TestSuite $suite, TestResult $result)
 {
     // Details
     if ($result->successCount() > 0) {
         $this->out->writeLine("\n---> Succeeeded:");
         foreach (array_keys($result->succeeded) as $key) {
             $this->out->writeLine('* ', $result->succeeded[$key]);
         }
     }
     if ($result->skipCount() > 0) {
         $this->out->writeLine("\n---> Skipped:");
         foreach (array_keys($result->skipped) as $key) {
             $this->out->writeLine('* ', $result->skipped[$key]);
         }
     }
     if ($result->failureCount() > 0) {
         $this->out->writeLine("\n---> Failed:");
         foreach (array_keys($result->failed) as $key) {
             $this->out->writeLine('* ', $result->failed[$key]);
         }
     }
     $this->out->writeLinef("\n===> %s: %d run (%d skipped), %d succeeded, %d failed", $result->failureCount() ? 'FAIL' : 'OK', $result->runCount(), $result->skipCount(), $result->successCount(), $result->failureCount());
     $this->out->writeLinef('===> Memory used: %.2f kB (%.2f kB peak)', Runtime::getInstance()->memoryUsage() / 1024, Runtime::getInstance()->peakMemoryUsage() / 1024);
     $this->out->writeLinef('===> Time taken: %.3f seconds', $result->elapsed());
 }
 /**
  * Called when a test run finishes.
  *
  * @param   unittest.TestSuite suite
  * @param   unittest.TestResult result
  */
 public function testRunFinished(TestSuite $suite, TestResult $result)
 {
     $this->out->writef("]2;%s: %d/%d run (%d skipped), %d succeeded, %d failed", $result->failureCount() > 0 ? 'FAIL' : 'OK', $result->runCount(), $result->count(), $result->skipCount(), $result->successCount(), $result->failureCount());
 }