Lines Matching refs:result

177      * @param PHPUnit_Framework_TestResult $result
179 public function printResult(PHPUnit_Framework_TestResult $result) argument
182 $this->printErrors($result);
183 $this->printWarnings($result);
184 $this->printFailures($result);
187 $this->printRisky($result);
188 $this->printIncompletes($result);
189 $this->printSkipped($result);
192 $this->printFooter($result);
273 * @param PHPUnit_Framework_TestResult $result
275 protected function printErrors(PHPUnit_Framework_TestResult $result) argument
277 $this->printDefects($result->errors(), 'error');
281 * @param PHPUnit_Framework_TestResult $result
283 protected function printFailures(PHPUnit_Framework_TestResult $result) argument
285 $this->printDefects($result->failures(), 'failure');
289 * @param PHPUnit_Framework_TestResult $result
291 protected function printWarnings(PHPUnit_Framework_TestResult $result) argument
293 $this->printDefects($result->warnings(), 'warning');
297 * @param PHPUnit_Framework_TestResult $result
299 protected function printIncompletes(PHPUnit_Framework_TestResult $result) argument
301 $this->printDefects($result->notImplemented(), 'incomplete test');
305 * @param PHPUnit_Framework_TestResult $result
307 protected function printRisky(PHPUnit_Framework_TestResult $result) argument
309 $this->printDefects($result->risky(), 'risky test');
313 * @param PHPUnit_Framework_TestResult $result
315 protected function printSkipped(PHPUnit_Framework_TestResult $result) argument
317 $this->printDefects($result->skipped(), 'skipped test');
326 * @param PHPUnit_Framework_TestResult $result
328 protected function printFooter(PHPUnit_Framework_TestResult $result) argument
330 if (count($result) === 0) {
339 if ($result->wasSuccessful() &&
340 $result->allHarmless() &&
341 $result->allCompletelyImplemented() &&
342 $result->noneSkipped()) {
347 count($result),
348 (count($result) == 1) ? '' : 's',
354 if ($result->wasSuccessful()) {
368 if ($result->errorCount()) {
375 } elseif ($result->failureCount()) {
382 } elseif ($result->warningCount()) {
392 $this->writeCountString(count($result), 'Tests', $color, true);
394 $this->writeCountString($result->errorCount(), 'Errors', $color);
395 $this->writeCountString($result->failureCount(), 'Failures', $color);
396 $this->writeCountString($result->warningCount(), 'Warnings', $color);
397 $this->writeCountString($result->skippedCount(), 'Skipped', $color);
398 $this->writeCountString($result->notImplementedCount(), 'Incomplete', $color);
399 $this->writeCountString($result->riskyCount(), 'Risky', $color);