Index: modules/update/update.test
===================================================================
RCS file: /Users/wright/drupal/local_repo/drupal/modules/update/update.test,v
retrieving revision 1.20
diff -u -p -r1.20 update.test
--- modules/update/update.test	23 Oct 2010 15:48:45 -0000	1.20
+++ modules/update/update.test	2 Jan 2011 19:47:12 -0000
@@ -592,8 +592,12 @@ class UpdateTestUploadCase extends Updat
    * Tests upload and extraction of a module.
    */
   public function testUploadModule() {
-    // Images are not valid archives, so get one and try to install it.
-    $invalidArchiveFile = reset($this->drupalGetTestFiles('image'));
+    // Images are not valid archives, so get one and try to install it. We
+    // need an extra variable to store the result of drupalGetTestFiles()
+    // since reset() takes an argument by reference and passing in a constant
+    // emits a notice in strict mode.
+    $imageTestFiles = $this->drupalGetTestFiles('image');
+    $invalidArchiveFile = reset($imageTestFiles);
     $edit = array(
       'files[project_upload]' => $invalidArchiveFile->uri,
     );
