Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ContainerBuilder mock generation in tests #914

Merged
merged 1 commit into from
Dec 1, 2014

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Nov 30, 2014

By default, PHPUnit mocks all methods of the mocked class. This breaks
when one of the methods has an argument that is type-hinted with a
non-existing class or interface.

@xabbuh
Copy link
Member Author

xabbuh commented Nov 30, 2014

This change makes it possible to test the bundle with Symfony 2.6.

@lsmith77
Copy link
Member

lsmith77 commented Dec 1, 2014

can you look into those build failures?

By default, PHPUnit mocks all methods of the mocked class. This breaks
when one of the methods has an argument that is type-hinted with a
non-existing class or interface.
@xabbuh
Copy link
Member Author

xabbuh commented Dec 1, 2014

@lsmith77 Thanks, I didn't notice that they failed. Fixed it now.

lsmith77 added a commit that referenced this pull request Dec 1, 2014
fix ContainerBuilder mock generation in tests
@lsmith77 lsmith77 merged commit 221ceea into FriendsOfSymfony:master Dec 1, 2014
@xabbuh xabbuh deleted the fix-tests branch December 1, 2014 10:34
@lsmith77 lsmith77 added this to the 1.5.0 milestone Jan 27, 2015
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.

2 participants