function Tests::addTest
Parameters
TestType $result:
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Tests.php, line 31
Class
- Tests
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
public function addTest(string $test, array $result) : void {
$node = $this->contextNode
->appendChild($this->contextNode->ownerDocument
->createElementNS('https://schema.phpunit.de/coverage/1.0', 'test'));
$node->setAttribute('name', $test);
$node->setAttribute('size', $result['size']);
$node->setAttribute('status', $result['status']);
}