Skip to content

Conversation

lcobucci
Copy link
Contributor

Some methods were missing, and when used phpstan doesn't work properly. It shows errors like:

Property MyTest::$property (MockedClass&PHPUnit\Framework\MockObject\MockObject) does not accept PHPUnit\Framework\MockObject\MockObject. 

This PR fixes it, but I didn't add any test (since the repo doesn't have any)

- `createPartialMock()` is available since PHPUnit 5.5.0
- `createTestProxy()` is available since PHPUnit 6.0.0
@ondrejmirtes
Copy link
Member

Thank you! 👍

@ondrejmirtes ondrejmirtes merged commit 96d2421 into phpstan:master Dec 11, 2017
@lcobucci lcobucci deleted the add-missing-methods branch December 11, 2017 10:35
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