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
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: