UploadedFile::moveTo()
doesn't remove the original file when used in CLI context and keep grab the handle.
#108
Labels
Bug
Something isn't working
Bug Report
Summary
UploadedFile::moveTo()
doesn't remove the original file when used in CLI context and keep grab the handle. So PHPUnit can't remove setup files. It fixed in this PR.#98
Current behavior
The uploaded file could not be removed when we called UploadedFile::moveTo().
How to reproduce
Instantiate UploadedFile, and post the object in PHPUnit testing, then remove it at tearDown, it could not be remove and raise error 'the file is in busy'.
Expected behavior
If UploadedFile::moveTo was called, the original file must be moved.
The text was updated successfully, but these errors were encountered: