You are here

protected function PHP_CodeCoverage_Report_Text::printCoverageCounts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php \PHP_CodeCoverage_Report_Text::printCoverageCounts()
1 call to PHP_CodeCoverage_Report_Text::printCoverageCounts()
PHP_CodeCoverage_Report_Text::process in vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php, line 226

Class

PHP_CodeCoverage_Report_Text
Generates human readable output from an PHP_CodeCoverage object.

Code

protected function printCoverageCounts($numberOfCoveredElements, $totalNumberOfElements, $presicion) {
  $format = '%' . $presicion . 's';
  return PHP_CodeCoverage_Util::percent($numberOfCoveredElements, $totalNumberOfElements, true, true) . ' (' . sprintf($format, $numberOfCoveredElements) . '/' . sprintf($format, $totalNumberOfElements) . ')';
}