-
Notifications
You must be signed in to change notification settings - Fork 117
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
Phaked nullable return type object will return phaked object #262
Comments
Hi Fred :-) This is because the default answer strategy used is I think a good addition would be to add a new I'll tag this as an Enhancement. Thanks |
Thanks for the explanation Pierrick! |
If a class declares a function with a nullable return type
Then, when mocking this object without specifying behaviour for this method (Phake::when(...) ), Phake will automatically return a Phaked object of this type instead of null
The text was updated successfully, but these errors were encountered: