diff --git a/tests/Integration/UploadedFileTest.php b/tests/Integration/UploadedFileTest.php
index <HASH>..<HASH> 100644
--- a/tests/Integration/UploadedFileTest.php
+++ b/tests/Integration/UploadedFileTest.php
@@ -21,6 +21,8 @@ class UploadedFileTest extends UploadedFileIntegrationTest
      */
     public function createSubject()
     {
-        return new UploadedFile(tmpfile());
+        $file = tempnam(sys_get_temp_dir(), 'Slim_Http_UploadedFileTest_');
+
+        return new UploadedFile($file);
     }
 }
fixed UploadedFileTest after updating to current version of psr7-integration-tests