/home/techb158/ileadtechnology.com/vendor/phpunit/php-code-coverage/src/Report/Xml
NameSizeModeActions
BuildInformation.php24570644editdlrm
Coverage.php17100644editdlrm
Directory.php3680644editdlrm
Facade.php84240644editdlrm
File.php19990644editdlrm
Method.php14910644editdlrm
Node.php21500644editdlrm
Project.php23650644editdlrm
Report.php25090644editdlrm
Source.php10240644editdlrm
Tests.php16720644editdlrm
Totals.php41440644editdlrm
Unit.php27460644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/phpunit/php-code-coverage/src/Report/Xml/File.php (1999B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CodeCoverage\Report\Xml; class File { /** * @var \DOMDocument */ private $dom; /** * @var \DOMElement */ private $contextNode; public function __construct(\DOMElement $context) { $this->dom = $context->ownerDocument; $this->contextNode = $context; } public function getTotals(): Totals { $totalsContainer = $this->contextNode->firstChild; if (!$totalsContainer) { $totalsContainer = $this->contextNode->appendChild( $this->dom->createElementNS( 'https://schema.phpunit.de/coverage/1.0', 'totals' ) ); } return new Totals($totalsContainer); } public function getLineCoverage(string $line): Coverage { $coverage = $this->contextNode->getElementsByTagNameNS( 'https://schema.phpunit.de/coverage/1.0', 'coverage' )->item(0); if (!$coverage) { $coverage = $this->contextNode->appendChild( $this->dom->createElementNS( 'https://schema.phpunit.de/coverage/1.0', 'coverage' ) ); } $lineNode = $coverage->appendChild( $this->dom->createElementNS( 'https://schema.phpunit.de/coverage/1.0', 'line' ) ); return new Coverage($lineNode, $line); } protected function getContextNode(): \DOMElement { return $this->contextNode; } protected function getDomDocument(): \DOMDocument { return $this->dom; } }