Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Replaced custom container with a stub #4

Merged
merged 1 commit into from
Nov 3, 2013
Merged

Replaced custom container with a stub #4

merged 1 commit into from
Nov 3, 2013

Conversation

jakzal
Copy link
Member

@jakzal jakzal commented Nov 2, 2013

The trick with custom container is no longer required with the latest phpspec versions. This PR makes calls to the container a bit more natural, since instead of calling set() we can now simply stub it:

$this->container->get('router')->willReturn($router);

However, I'm not sure if the approach with container as a property is the road we want to continue going (see #3).

jakzal added a commit that referenced this pull request Nov 3, 2013
Replaced custom container with a stub
@jakzal jakzal merged commit 2dd925f into phpspec:master Nov 3, 2013
@jakzal
Copy link
Member Author

jakzal commented Nov 3, 2013

I merged it even though there's a risk we'll abandon this approach, because it only simplifies the current approach.

@jakzal jakzal deleted the container-stub branch November 3, 2013 18:54
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.

1 participant