class Tests
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
@psalm-import-type TestType from \SebastianBergmann\CodeCoverage\CodeCoverage
Hierarchy
- class \SebastianBergmann\CodeCoverage\Report\Xml\Tests
Expanded class hierarchy of Tests
11 string references to 'Tests'
- DebugClassLoader::checkAnnotations in vendor/
symfony/ error-handler/ DebugClassLoader.php - Deprecation::triggerIfCalledFromOutside in vendor/
doctrine/ deprecations/ lib/ Doctrine/ Deprecations/ Deprecation.php - Trigger a deprecation for the given package and identifier when called from outside.
- GenerateConfigurationCommand::execute in vendor/
phpunit/ phpunit/ src/ TextUI/ Command/ Commands/ GenerateConfigurationCommand.php - HookCollectorPass::filterIterator in core/
lib/ Drupal/ Core/ Hook/ HookCollectorPass.php - Filter iterator callback. Allows include files and .php files in src/Hook.
- IfNode::compile in vendor/
twig/ twig/ src/ Node/ IfNode.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Tests.php, line 19
Namespace
SebastianBergmann\CodeCoverage\Report\XmlView source
final class Tests {
private readonly DOMElement $contextNode;
public function __construct(DOMElement $context) {
$this->contextNode = $context;
}
/**
* @param TestType $result
*/
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']);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Tests::$contextNode | private | property | |
Tests::addTest | public | function | |
Tests::__construct | public | function |