title: How to stop Illuminate\Http\UploadedFile from deleting file
body: <p>I would like to upload a file for testing but Illuminate\Http\UploadedFile keeps deleting the file, is there a way to keep it?</p>
  
  <pre><code>    protected function getTestFile($fileName)
  {
      $file = new UploadedFile(
          base_path('tests/files/' . $fileName),
          $fileName,
          $this-&gt;getMimeType($fileName),
          null,
          true
      );
  
      return ['file' =&gt; $file];
  }
  </code></pre>
  
  <p>and in test: </p>
  
  <p><code>$response = $this-&gt;call('POST', route('terms.import'), [], [], $this-&gt;getTestFile('create_terms.xls'));</code></p>