Index: modules/simpletest/drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v
retrieving revision 1.164
diff -u -r1.164 drupal_web_test_case.php
--- modules/simpletest/drupal_web_test_case.php	20 Oct 2009 00:55:29 -0000	1.164
+++ modules/simpletest/drupal_web_test_case.php	21 Oct 2009 03:07:23 -0000
@@ -1023,7 +1023,9 @@
    * is created with the same name as the database prefix.
    *
    * @param ...
-   *   List of modules to enable for the duration of the test.
+   *   Either a single array containing a list of modules or variable number of
+   *   arguments containing the modules to enabl enable for the duration of the
+   *   test.
    */
   protected function setUp() {
     global $db_prefix, $user, $language;
@@ -1068,9 +1070,15 @@
 
     drupal_static_reset('_node_types_build');
 
+    // If the first argument is an array then use it as the list of modules,
+    // otherwise use all the function arguments as modules.
+    $modules = func_get_args();
+    if ($modules && is_array($modules[0])) {
+      $modules = $modules[0];
+    }
+
     // Install additional modules one at a time in order to make sure that the
     // list of modules is updated between each module's installation.
-    $modules = func_get_args();
     foreach ($modules as $module) {
       drupal_install_modules(array($module), TRUE);
     }
