-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Prevent runtime type error due to wrong return value configuration #3122
Labels
feature/test-doubles
Test Stubs and Mock Objects
type/enhancement
A new idea that should be implemented
Comments
sebastianbergmann
added
type/enhancement
A new idea that should be implemented
feature/test-doubles
Test Stubs and Mock Objects
labels
May 12, 2018
MichelHartmann
added a commit
to MichelHartmann/phpunit
that referenced
this issue
Apr 27, 2019
PHPUnit Code Sprint with bschulze
MichelHartmann
added a commit
to MichelHartmann/phpunit
that referenced
this issue
Apr 28, 2019
PHPUnit Code Sprint with bschulze
MichelHartmann
added a commit
to MichelHartmann/phpunit
that referenced
this issue
Apr 30, 2019
PHPUnit Code Sprint with bschulze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature/test-doubles
Test Stubs and Mock Objects
type/enhancement
A new idea that should be implemented
willReturn()
should raise an error when a return value is configured that does not match the stubbed method's return value.Actual:
TypeError
when stubbed method is invokedThe text was updated successfully, but these errors were encountered: