=== modified file 'modules/field/tests/field.test'
--- modules/field/tests/field.test	2010-02-07 05:12:34 +0000
+++ modules/field/tests/field.test	2010-02-09 17:42:51 +0000
@@ -19,7 +19,12 @@ class FieldTestCase extends DrupalWebTes
     // Call parent::setUp().
     // @see http://www.php.net/manual/en/function.call-user-func-array.php#73105
     $args = func_get_args();
-    call_user_func_array(array($this, 'parent::setUp'), $args);
+    if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
+      call_user_func_array('parent::setUp', $args);
+    }
+    else {
+      call_user_func_array(array($this, 'parent::setUp'), $args);
+    }
     // Set default storage backend.
     variable_set('field_storage_default', $this->default_storage);
   }
@@ -70,7 +75,16 @@ class FieldTestCase extends DrupalWebTes
 
 class FieldAttachTestCase extends FieldTestCase {
   function setUp() {
-    parent::setUp('field_test');
+    $args = func_get_args();
+    if (!in_array('field_test', $args)) {
+      $args[] = 'field_test';
+    }
+    if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
+      call_user_func_array('parent::setUp', $args);
+    }
+    else {
+      call_user_func_array(array($this, 'parent::setUp'), $args);
+    }
 
     $this->field_name = drupal_strtolower($this->randomName() . '_field_name');
     $this->field = array('field_name' => $this->field_name, 'type' => 'test_field', 'cardinality' => 4);

