symfony - Symfony2, create a fake UploadedFile for functional test -


i have rest api written in symfony2 api call upload file.

this file can't more 40mb , must respect format.

i know how can create fake uploadedfile

according symfony2 documentation , seems possible precise mime type, size , name , , mysterious "test" parameters (which first thought put true when 1 want tell symfony it's fake one) not work (it wants valid file path)

so how people do, in case can't put 50mo file in repository sake of 1 functional test.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -