You are here

public function PHP_CodeCoverage_Report_Node::getTestedClassesPercent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php \PHP_CodeCoverage_Report_Node::getTestedClassesPercent()

Returns the percentage of classes that has been tested.

Parameters

bool $asString:

Return value

int

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php, line 139

Class

PHP_CodeCoverage_Report_Node
Base class for nodes in the code coverage information tree.

Code

public function getTestedClassesPercent($asString = true) {
  return PHP_CodeCoverage_Util::percent($this
    ->getNumTestedClasses(), $this
    ->getNumClasses(), $asString);
}