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

Breadcrumb

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

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\Xml

Code

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']);
}
RSS feed
Powered by Drupal