function PhpUnitTestRunner::xmlLogFilePath

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Test/PhpUnitTestRunner.php \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilePath()
  2. 10 core/lib/Drupal/Core/Test/PhpUnitTestRunner.php \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilePath()
  3. 9 core/lib/Drupal/Core/Test/PhpUnitTestRunner.php \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilePath()
  4. 8.9.x core/lib/Drupal/Core/Test/PhpUnitTestRunner.php \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilePath()

Returns the path to use for PHPUnit's --log-junit option.

@internal

Parameters

int $test_id: The current test ID.

Return value

string Path to the PHPUnit XML file to use for the current $test_id.

2 calls to PhpUnitTestRunner::xmlLogFilePath()
PhpUnitTestRunner::prepareCommand in core/lib/Drupal/Core/Test/PhpUnitTestRunner.php
Prepares the context to execute a PHPUnit process.
PhpUnitTestRunner::processPhpUnitOnSingleTestClassOutcome in core/lib/Drupal/Core/Test/PhpUnitTestRunner.php
Processes PHPUnit test execution output.

File

core/lib/Drupal/Core/Test/PhpUnitTestRunner.php, line 185

Class

PhpUnitTestRunner
Run PHPUnit-based tests.

Namespace

Drupal\Core\Test

Code

public function xmlLogFilePath(int $test_id) : string {
  return $this->workingDirectory . '/phpunit-' . $test_id . '.xml';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.