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

Breadcrumb

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

function JunitXmlLogger::handleIncompleteOrSkipped

Throws

InvalidArgumentException

2 calls to JunitXmlLogger::handleIncompleteOrSkipped()
JunitXmlLogger::testMarkedIncomplete in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
JunitXmlLogger::testSkipped in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php

File

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

Class

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

Namespace

PHPUnit\Logging\JUnit

Code

private function handleIncompleteOrSkipped(MarkedIncomplete|Skipped $event) : void {
    if (!$this->prepared) {
        $this->createTestCase($event);
    }
    assert($this->currentTestCase !== null);
    $skipped = $this->document
        ->createElement('skipped');
    $this->currentTestCase
        ->appendChild($skipped);
    $this->testSuiteSkipped[$this->testSuiteLevel]++;
    if (!$this->prepared) {
        $this->handleFinish($event->telemetryInfo(), 0);
    }
}
RSS feed
Powered by Drupal