Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tests.php

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

... See full list

File

vendor/phpunit/php-code-coverage/src/Report/Xml/Tests.php, line 19

Namespace

SebastianBergmann\CodeCoverage\Report\Xml
View 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
RSS feed
Powered by Drupal