You are here

public function PhpUnitTestRunner::xmlLogFilePath in Drupal 9

Same name and namespace in other branches
  1. 8 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()

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.

1 call to PhpUnitTestRunner::xmlLogFilePath()
PhpUnitTestRunner::runTests in core/lib/Drupal/Core/Test/PhpUnitTestRunner.php
Executes PHPUnit tests and returns the results of the run.

File

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

Class

PhpUnitTestRunner
Run PHPUnit-based tests.

Namespace

Drupal\Core\Test

Code

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