/** * Prints out a tap compatible summary line. The tap format specifies * that this line can be printed before the tests or after. In this case * we have chosen after since we then know how many tests were run * * @param int $total * @param TestResult[] $errors * @param Label[] $labels * @param TestResult[] $results */ public function reportEnd($total, $errors, $labels, $results) { if ($total > 0) { Output::message("1..{$total}" . PHP_EOL); } }
/** * Prints out a result summary and if there are any test failures, * prints out error details * * @param int $total - total number of tests run * @param TestResult[] $errors - array of error objects * @param Label[] $labels - array of labels corresponding to errors * @param TestResult[] $results - array of results */ public function reportEnd($total, $errors, $labels, $results) { $this->renderErrors($errors, $labels); $this->renderStatusMessage($total, count($errors)); $this->renderErrorSummaries($errors); Output::message(PHP_EOL); }