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

Breadcrumb

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

function 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::execute 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 67

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';
}

API Navigation

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