function PhpUnitTestRunner::processPhpUnitResults
Logs the parsed PHPUnit results into the test run.
Parameters
\Drupal\Core\Test\TestRun $test_run: The test run object.
array[] $phpunit_results: An array of test results, as returned from \Drupal\Core\Test\JUnitConverter::xmlToRows(). Can be the return value of PhpUnitTestRunner::execute().
File
-
core/
lib/ Drupal/ Core/ Test/ PhpUnitTestRunner.php, line 226
Class
- PhpUnitTestRunner
- Run PHPUnit-based tests.
Namespace
Drupal\Core\TestCode
public function processPhpUnitResults(TestRun $test_run, array $phpunit_results) : void {
foreach ($phpunit_results as $result) {
$test_run->insertLogEntry($result);
}
}