Skip to content

Support for argument expectations in Stubs#26

Open
rbait wants to merge 2 commits intoCodeception:masterfrom
rbait:master
Open

Support for argument expectations in Stubs#26
rbait wants to merge 2 commits intoCodeception:masterfrom
rbait:master

Conversation

@rbait
Copy link

@rbait rbait commented Jul 28, 2020

Basic support for argument expectactions in Stubs, by chaining a with() method to Expected. This is something we were really missing compared to plain PHPUnit mocks, and turned out to be not that hard to add.

Syntax: Stub\Expected::once()->with('argument', 1, new StdClass)

Fully backwards compatible and unit tests have been added

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants