Currently if you specify a file to be uploaded, that file is treated as the temporary upload file normally created by php. That is wrong behaviour, since that temporary file is usually moved or removed by the php application under test. So the next time you run the behat test the file that you used for the upload is not there anymore.
This is a PR to fix this. This PR also removes the temporary files it created afterwards if the application has not removed them.
Currently if you specify a file to be uploaded, that file is treated as the temporary upload file normally created by php. That is wrong behaviour, since that temporary file is usually moved or removed by the php application under test. So the next time you run the behat test the file that you used for the upload is not there anymore.
This is a PR to fix this. This PR also removes the temporary files it created afterwards if the application has not removed them.