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

Breadcrumb

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

function AbstractPhpProcess::runTestJob

Runs a single test in a separate PHP process.

Throws

\PHPUnit\Runner\Exception

Exception

MoreThanOneDataSetFromDataProviderException

NoPreviousThrowableException

File

vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php, line 137

Class

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

Namespace

PHPUnit\Util\PHP

Code

public function runTestJob(string $job, Test $test, string $processResultFile) : void {
    $_result = $this->runJob($job);
    $processResult = '';
    if (file_exists($processResultFile)) {
        $processResult = file_get_contents($processResultFile);
        @unlink($processResultFile);
    }
    $this->processChildResult($test, $processResult, $_result['stderr']);
}

API Navigation

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