/**
  * @since 2.5
  *
  * @param string $localUploadPath
  * @param $desiredDestName
  *
  * @return LocalFileUpload
  */
 public function newLocalFileUploadWithCopy($localUploadPath, $desiredDestName)
 {
     // Use to create a copy to avoid having the orginal file being
     // deleted after the upload
     $dummyFileCreator = new DummyFileCreator($desiredDestName);
     $dummyFileCreator->createFileWithCopyFrom($localUploadPath);
     return new LocalFileUpload($dummyFileCreator->getPath(), $desiredDestName);
 }
 /**
  * @since 2.1
  *
  * @param string $desiredDestName
  *
  * @return DummyFileCreator
  */
 public function newDummyTextFile($desiredDestName)
 {
     $dummyFileCreator = new DummyFileCreator($desiredDestName);
     $dummyFileCreator->createFileWithCopyFrom(__DIR__ . '/File/' . 'LoremIpsum.txt');
     return $dummyFileCreator;
 }