Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Simplified will return #147

Merged
merged 3 commits into from
Dec 12, 2013
Merged

Simplified will return #147

merged 3 commits into from
Dec 12, 2013

Conversation

fabian
Copy link
Contributor

@fabian fabian commented Dec 12, 2013

As proposed in #144 by @ciaranmcnulty and @whatthejeff here's another PR for a simplified use of will($this->returnValue($value)):

$stub->method('doSomething')->willReturn(...);
$stub->method('doSomething')->willReturnMap(...);
$stub->method('doSomething')->willReturnArgument(...);
$stub->method('doSomething')->willReturnCallback(...);
$stub->method('doSomething')->willReturnSelf(...);
$stub->method('doSomething')->willReturnOnConsecutiveCalls(...);
$stub->method('doSomething')->willThrowException(...);

whatthejeff added a commit that referenced this pull request Dec 12, 2013
@whatthejeff whatthejeff merged commit a1a2f93 into sebastianbergmann:master Dec 12, 2013
@whatthejeff
Copy link
Collaborator

Looks great! Thanks @fabian and @ciaranmcnulty :)

@ciaranmcnulty
Copy link
Contributor

Awesome stuff ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants