final class JUnit

Reads the verdict of a test run from its JUnit XML reports.

Unsafe, unreadable or malformed reports, reports without executed cases, and any failure, error or skip turn the run into a non-passing result.

Methods§

public function read(list<string> $files, int $exitCode, string $output): TestResult

Reads the reports of one run.

Parameters

$fileslist<string>The report files the run wrote
$exitCodeintThe exit code of the run
$outputstringThe run's output, reported when it did not pass

Returns

TestResult The verdict and the number of executed cases
Test cases 12
Called from 1
Calls 11

Test cases 15§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 12
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Method calls 1