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

Breadcrumb

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

function JunitXmlLogger::testSuiteFinished

File

vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php, line 135

Class

JunitXmlLogger
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Logging\JUnit

Code

public function testSuiteFinished() : void {
    $this->testSuites[$this->testSuiteLevel]
        ->setAttribute('tests', (string) $this->testSuiteTests[$this->testSuiteLevel]);
    $this->testSuites[$this->testSuiteLevel]
        ->setAttribute('assertions', (string) $this->testSuiteAssertions[$this->testSuiteLevel]);
    $this->testSuites[$this->testSuiteLevel]
        ->setAttribute('errors', (string) $this->testSuiteErrors[$this->testSuiteLevel]);
    $this->testSuites[$this->testSuiteLevel]
        ->setAttribute('failures', (string) $this->testSuiteFailures[$this->testSuiteLevel]);
    $this->testSuites[$this->testSuiteLevel]
        ->setAttribute('skipped', (string) $this->testSuiteSkipped[$this->testSuiteLevel]);
    $this->testSuites[$this->testSuiteLevel]
        ->setAttribute('time', sprintf('%F', $this->testSuiteTimes[$this->testSuiteLevel]));
    if ($this->testSuiteLevel > 1) {
        $this->testSuiteTests[$this->testSuiteLevel - 1] += $this->testSuiteTests[$this->testSuiteLevel];
        $this->testSuiteAssertions[$this->testSuiteLevel - 1] += $this->testSuiteAssertions[$this->testSuiteLevel];
        $this->testSuiteErrors[$this->testSuiteLevel - 1] += $this->testSuiteErrors[$this->testSuiteLevel];
        $this->testSuiteFailures[$this->testSuiteLevel - 1] += $this->testSuiteFailures[$this->testSuiteLevel];
        $this->testSuiteSkipped[$this->testSuiteLevel - 1] += $this->testSuiteSkipped[$this->testSuiteLevel];
        $this->testSuiteTimes[$this->testSuiteLevel - 1] += $this->testSuiteTimes[$this->testSuiteLevel];
    }
    $this->testSuiteLevel--;
}

API Navigation

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