function simpletest_process_phpunit_results

Inserts the parsed phpunit results into the simpletest table.

Parameters

array $phpunit_results: An array of test results returned from simpletest_phpunit_xml_to_rows.

1 call to simpletest_process_phpunit_results()
simpletest_run_tests in drupal/core/modules/simpletest/simpletest.module
Actually runs tests.

File

drupal/core/modules/simpletest/simpletest.module, line 192
Provides testing functionality.

Code

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();
  }
}