Tester\Runner\Runner::getResults PHP Method

getResults() public method

public getResults ( ) : array
return array
    public function getResults()
    {
        return $this->results;
    }

Usage Example

Example #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;
 }
All Usage Examples Of Tester\Runner\Runner::getResults