Repository navigation
Update tests for PHPUnit 5.5 - #438
Conversation
Nyholm
left a comment
There was a problem hiding this comment.
I like this PR. But as you see from Travis we can't drop support for phpunit 4. Please allow both versions in composer.json
|
@Nyholm I updated the PR, but it seems to me that the TravisCI error is due to the minimum stability setting and the dependencies. :( |
| $method = 'bar'; | ||
| $parameters = array('baz'); | ||
| $api = $this->getMock('Github\Api\ApiInterface'); | ||
| $api = $this->createMock('Github\Api\ApiInterface'); |
There was a problem hiding this comment.
createMock was added in PHPUnit 5.4 and PHPUnit 5.X is min PHP 5.6
There was a problem hiding this comment.
You can use getMockBuilder() instead which works on all supported PHPUnit versions without triggering deprecations.
|
👎 |
|
@GrahamCampbell Could you elaborate your comment? |
|
My comment was basically because of:
However, if the solution:
is implemented instead, then 👍. |
No description provided.