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

Breadcrumb

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

function JunitXmlLogger::testAsString

Throws

InvalidArgumentException

1 call to JunitXmlLogger::testAsString()
JunitXmlLogger::handleFault in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php

File

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

Class

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

Namespace

PHPUnit\Logging\JUnit

Code

private function testAsString(Test $test) : string {
    if ($test->isPhpt()) {
        return basename($test->file());
    }
    assert($test instanceof TestMethod);
    return sprintf('%s::%s%s', $test->className(), $this->name($test), PHP_EOL);
}

API Navigation

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