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

Replace getMock() with createMock() #2435

Merged
merged 1 commit into from
Jul 7, 2016

Conversation

deeky666
Copy link
Member

As a result of bumping PHPUnit requirement to ^5.4.6 in #2419 we get a lot of deprecation warnings for PHPUnit_Framework_TestCase::getMock() in our test suite.

This PR fixes all of them. Also two tests had to be adjusted, because they were doing expectations on non-existing methods which PHPUnit now warns about.

@Ocramius
Copy link
Member

Ocramius commented Jul 5, 2016

@deeky666 patch needs bumping PHPUnit dependency to at least ^5.4.0 (pick latest, please)

@deeky666
Copy link
Member Author

deeky666 commented Jul 6, 2016

@Ocramius you did that already in #2419 or am I missing something? =)

@deeky666
Copy link
Member Author

deeky666 commented Jul 6, 2016

Actually the issues fixed here were introduced because of that PR ;)

@Ocramius
Copy link
Member

Ocramius commented Jul 7, 2016

@deeky666 indeed, thanks for pointing it out :-)

@Ocramius Ocramius self-assigned this Jul 7, 2016
@Ocramius Ocramius merged commit 8e8c5a1 into doctrine:master Jul 7, 2016
@deeky666 deeky666 deleted the fix-phpunit-deprecations branch July 7, 2016 07:24
@Ocramius Ocramius changed the title Refactor deprecated PHPUnit_Framework_TestCase::getMock() calls Replace getMock() with createMock() Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants