Avoid mocking File and Uploaded file objects as it's not supported in all PHP versions