function Project::tests
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Project.php, line 49
Class
- Project
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
public function tests() : Tests {
$testsNode = $this->contextNode()
->getElementsByTagNameNS('https://schema.phpunit.de/coverage/1.0', 'tests')
->item(0);
if (!$testsNode) {
$testsNode = $this->contextNode()
->appendChild($this->dom()
->createElementNS('https://schema.phpunit.de/coverage/1.0', 'tests'));
}
return new Tests($testsNode);
}