-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot instanciate dummies of SplFileInfo subclasses without arguments #414
Comments
What error do you get when trying to use the double? |
|
Looks like the SplFileInfo patch doesn't look at what the constructor actually is |
We should check for Not only for SF related issue, but more in general. |
But then
I'm not sure why. Can this line be removed? |
If I remove the line, my test works This line comes from this old pull request : cb7eec4 |
When creating a dummy of
Symfony\Component\HttpFoundation\File\UploadedFile
(from packagesymfony/http-foundation
), the created class for the dummy cannot be instanciated without arguments.This is the constructor of
Symfony\Component\HttpFoundation\File\UploadedFile
:This is the constructor of the created class:
If I disable
SplFileInfoPatch
, the constructor is the following:In such case, instanciating the stub without arguments works fine.
I'm not sure whether this is the expected behavior but if not, I'd be glad to work on a fix.
The text was updated successfully, but these errors were encountered: