You are here

public function PHP_CodeCoverage_Report_Node::getTestedClassesAndTraitsPercent in Zircon Profile 8.0

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

Returns the percentage of traits that has been tested.

@since Method available since Release 1.2.0

Parameters

bool $asString:

Return value

int

File

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

Class

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

Code

public function getTestedClassesAndTraitsPercent($asString = true) {
  return PHP_CodeCoverage_Util::percent($this
    ->getNumTestedClassesAndTraits(), $this
    ->getNumClassesAndTraits(), $asString);
}