private function PHP_CodeCoverage_Report_XML_Project::init in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php \PHP_CodeCoverage_Report_XML_Project::init()
1 call to PHP_CodeCoverage_Report_XML_Project::init()
- PHP_CodeCoverage_Report_XML_Project::__construct in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ Project.php
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ Project.php, line 22
Class
- PHP_CodeCoverage_Report_XML_Project
- @since Class available since Release 2.0.0
Code
private function init() {
$dom = new DOMDocument();
$dom
->loadXML('<?xml version="1.0" ?><phpunit xmlns="http://schema.phpunit.de/coverage/1.0"><project/></phpunit>');
$this
->setContextNode($dom
->getElementsByTagNameNS('http://schema.phpunit.de/coverage/1.0', 'project')
->item(0));
}