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
Post a Comment