getJobCount() 공개 메소드

Get count of jobs.
public getJobCount ( ) : integer
리턴 integer
예제 #1
1
 public function end()
 {
     $jobCount = $this->runner->getJobCount();
     $results = $this->runner->getResults();
     $count = array_sum($results);
     echo !$jobCount ? "No tests found\n" : "\n\n" . $this->buffer . "\n" . ($results[Runner::FAILED] ? Dumper::color('white/red') . 'FAILURES!' : Dumper::color('white/green') . 'OK') . " ({$jobCount} test" . ($jobCount > 1 ? 's' : '') . ", " . ($results[Runner::FAILED] ? $results[Runner::FAILED] . ' failure' . ($results[Runner::FAILED] > 1 ? 's' : '') . ', ' : '') . ($results[Runner::SKIPPED] ? $results[Runner::SKIPPED] . ' skipped, ' : '') . ($jobCount !== $count ? $jobCount - $count . ' not run, ' : '') . sprintf('%0.1f', $this->time + microtime(TRUE)) . ' seconds)' . Dumper::color() . "\n";
     $this->buffer = NULL;
 }
예제 #2
0
 public function end()
 {
     $jobCount = $this->runner->getJobCount();
     $results = $this->runner->getResults();
     $count = array_sum($results);
     fwrite($this->file, ($results[Runner::FAILED] ? 'FAILURES!' : 'OK') . " ({$jobCount} tests" . ($results[Runner::FAILED] ? ", {$results[Runner::FAILED]} failures" : '') . ($results[Runner::SKIPPED] ? ", {$results[Runner::SKIPPED]} skipped" : '') . ($jobCount !== $count ? ', ' . ($jobCount - $count) . ' not run' : '') . ')');
 }
예제 #3
0
 public function end()
 {
     $jobCount = $this->runner->getJobCount();
     $results = $this->runner->getResults();
     $count = array_sum($results);
     echo !$jobCount ? "No tests found\n" : "\n\n" . $this->buffer . "\n" . ($results[Runner::FAILED] ? "FAILURES!" : "OK") . " ({$jobCount} test" . ($jobCount > 1 ? 's' : '') . ", " . ($results[Runner::FAILED] ? $results[Runner::FAILED] . ' failure' . ($results[Runner::FAILED] > 1 ? 's' : '') . ', ' : '') . ($results[Runner::SKIPPED] ? $results[Runner::SKIPPED] . ' skipped, ' : '') . ($jobCount !== $count ? $jobCount - $count . ' not run, ' : '') . sprintf('%0.1f', $this->time + microtime(TRUE)) . " seconds)\n";
     $this->buffer = NULL;
 }