avto-dev / roadrunner-laravel

[ABANDONED] Moved to https://github.com/spiral/roadrunner-laravel
MIT License
120 stars 15 forks source link

Mock is_uploaded_file function for Symfony\Component\HttpFoundation\File namespace #11

Closed jetexe closed 5 years ago

jetexe commented 5 years ago
Q A
Bug fix? Yes
New feature? Yes

Description

When you try to validate uploaded file by Laravel you will always get validation error becouse Symfony use is_uploaded_file function to validate file.

Now we can mock this function just for Symfony\Component\HttpFoundation\File. It will always return true

Fixes #10

Checklist

tarampampam commented 5 years ago

Looks great! Thx!

tarampampam commented 5 years ago

Merged into temporary branch for some changes