Override default call count expectations via expects()#1146
Override default call count expectations via expects()#1146davedevelopment merged 3 commits intomockery:masterfrom ghostwriter:bugfix/overriding-expects-default-call-count
expects()#1146Conversation
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
|
@davedevelopment How does this look to you? |
|
Merged, thank you, apologies for the tardiness |
|
@davedevelopment Could we get a tag for this? |
|
@davedevelopment it would be amazing if you could tag this, we've just encountered this behavior in our test suite. It's great that it's been fixed already, but we don't want to require dev-master |
|
Sorry for the delay. I'll see if I can get around to tagging sometime soon. |
|
Bro, what? You just type |
|
I usually spend a bit of time reviewing what has changed and updating the CHANGELOG etc. It doesn't take long, but I don't have that much time to contribute and I'd rather not rush. Bilge has annoyed me enough times, he's rarely constructive so I've blocked him. |
By default
expects()sets up an expectation that the method should be called once and once only.http://docs.mockery.io/en/stable/reference/alternative_should_receive_syntax.html#expects
http://docs.mockery.io/en/stable/reference/expectations.html#declaring-call-count-expectations
If accepted, this example code will run as expected.