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

Breadcrumb

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

function Coverage::addTest

Throws

ReportAlreadyFinalizedException

File

vendor/phpunit/php-code-coverage/src/Report/Xml/Coverage.php, line 38

Class

Coverage
@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) : void {
    if ($this->finalized) {
        throw new ReportAlreadyFinalizedException();
    }
    $this->writer
        ->startElement('covered');
    $this->writer
        ->writeAttribute('by', $test);
    $this->writer
        ->endElement();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal