You are here

private function PHPUnit_TextUI_ResultPrinter::writeCountString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_ResultPrinter::writeCountString()

@since Method available since Release 4.6.5

Parameters

int $count:

string $name:

string $color:

bool $always:

1 call to PHPUnit_TextUI_ResultPrinter::writeCountString()
PHPUnit_TextUI_ResultPrinter::printFooter in vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php

File

vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php, line 621

Class

PHPUnit_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.

Code

private function writeCountString($count, $name, $color, $always = false) {
  static $first = true;
  if ($always || $count > 0) {
    $this
      ->writeWithColor($color, sprintf('%s%s: %d', !$first ? ', ' : '', $name, $count), false);
    $first = false;
  }
}