Method was expected to be called 1 times, actually called 1 times.
While technically correct, it was time consuming to figure out why this happened. In this case it was because I was using a dataProvider and was programatically setting the expected count like this:
Thank you for your contribution. I am sorry that I did not get around to review/merge this sooner. Please send a new pull request against current master.
Recently I encountered this issue:
Method was expected to be called 1 times, actually called 1 times.
While technically correct, it was time consuming to figure out why this happened. In this case it was because I was using a
dataProvider
and was programatically setting the expected count like this:As such it was comparing floats and integers and the expected output does not reflect that.
I hope these changes will improve on that.