You are here

private function PHP_CodeCoverage_Report_XML::setTotals in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php \PHP_CodeCoverage_Report_XML::setTotals()
2 calls to PHP_CodeCoverage_Report_XML::setTotals()
PHP_CodeCoverage_Report_XML::processDirectory in vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php
PHP_CodeCoverage_Report_XML::processFile in vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php, line 202

Class

PHP_CodeCoverage_Report_XML
@since Class available since Release 2.0.0

Code

private function setTotals(PHP_CodeCoverage_Report_Node $node, PHP_CodeCoverage_Report_XML_Totals $totals) {
  $loc = $node
    ->getLinesOfCode();
  $totals
    ->setNumLines($loc['loc'], $loc['cloc'], $loc['ncloc'], $node
    ->getNumExecutableLines(), $node
    ->getNumExecutedLines());
  $totals
    ->setNumClasses($node
    ->getNumClasses(), $node
    ->getNumTestedClasses());
  $totals
    ->setNumTraits($node
    ->getNumTraits(), $node
    ->getNumTestedTraits());
  $totals
    ->setNumMethods($node
    ->getNumMethods(), $node
    ->getNumTestedMethods());
  $totals
    ->setNumFunctions($node
    ->getNumFunctions(), $node
    ->getNumTestedFunctions());
}