-
-
Notifications
You must be signed in to change notification settings - Fork 598
Update tests for PHPUnit 5.5 #438
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
Update tests for PHPUnit 5.5 #438
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. :( |
@@ -97,9 +101,12 @@ public function testFetch() | |||
$result = 'foo'; | |||
$method = 'bar'; | |||
$parameters = array('baz'); | |||
$api = $this->getMock('Github\Api\ApiInterface'); | |||
$api = $this->createMock('Github\Api\ApiInterface'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createMock
was added in PHPUnit 5.4 and PHPUnit 5.X is min PHP 5.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.