public function execute(TestRun
$test_run, array
$unescaped_test_classnames, int &
$status = NULL
): array
{ $phpunit_file =
$this->
xmlLogFilePath($test_run->
id());
// Store output from our test run.
$output =
[];
$this->
runCommand($unescaped_test_classnames,
$phpunit_file,
$status,
$output);
if ($status == TestStatus::PASS
) { return JUnitConverter::
xmlToRows($test_run->
id(),
$phpunit_file);
} return [ [ 'test_id' =>
$test_run->
id(),
'test_class' =>
implode(",",
$unescaped_test_classnames),