Inserts the parsed phpunit results into the simpletest table.
array $phpunit_results: An array of test results returned from simpletest_phpunit_xml_to_rows.
function simpletest_process_phpunit_results($phpunit_results) {
// Insert the results of the phpunit test run into the db so the results are
// displayed along with simpletest's results.
if (!empty($phpunit_results)) {
$query = db_insert('simpletest')
->fields(array_keys($phpunit_results[0]));
foreach ($phpunit_results as $result) {
$query
->values($result);
}
$query
->execute();
}
}