You are here

public function PHP_CodeCoverage_Report_XML_File_Report::getFunctionObject in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php \PHP_CodeCoverage_Report_XML_File_Report::getFunctionObject()

File

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

Class

PHP_CodeCoverage_Report_XML_File_Report
@since Class available since Release 2.0.0

Code

public function getFunctionObject($name) {
  $node = $this->contextNode
    ->appendChild($this->dom
    ->createElementNS('http://schema.phpunit.de/coverage/1.0', 'function'));
  return new PHP_CodeCoverage_Report_XML_File_Method($node, $name);
}