Executes phpunit tests and returns the results of the run.
$test_id: The current test ID.
$unescaped_test_classnames: An array of test class names, including full namespaces, to be passed as a regular expression to phpunit's --filter option.
array The parsed results of phpunit's junit xml output, in the format of the simpletest table's schema.
function simpletest_run_phpunit_tests($test_id, array $unescaped_test_classnames) {
$phpunit_file = simpletest_phpunit_xml_filepath($test_id);
simpletest_phpunit_run_command($unescaped_test_classnames, $phpunit_file);
return simpletest_phpunit_xml_to_rows($test_id, $phpunit_file);
}