public function PHP_CodeCoverage_Report_Node::getNumClassesAndTraits in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php \PHP_CodeCoverage_Report_Node::getNumClassesAndTraits()
Returns the number of classes and traits.
@since Method available since Release 1.2.0
Return value
int
1 call to PHP_CodeCoverage_Report_Node::getNumClassesAndTraits()
- PHP_CodeCoverage_Report_Node::getTestedClassesAndTraitsPercent in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node.php - Returns the percentage of traits that has been tested.
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node.php, line 215
Class
- PHP_CodeCoverage_Report_Node
- Base class for nodes in the code coverage information tree.
Code
public function getNumClassesAndTraits() {
return $this
->getNumClasses() + $this
->getNumTraits();
}