-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Resolves issue #34 #35
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.
Could you fix tests?
@@ -49,7 +49,7 @@ public function upload($data) | |||
} | |||
|
|||
if ('file' === $data['type']) { | |||
$data['image'] = '@' . $data['image']; |
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.
The @
tricks is working with curl https://www.iditect.com/how-to/56655862.html
But I don't know with Guzzle.
The failed test is as follows:
Download the |
@@ -33,7 +33,7 @@ before_script: | |||
- composer install --prefer-dist --no-interaction -o | |||
|
|||
script: | |||
- ./vendor/bin/simple-phpunit -v --coverage-clover=coverage.clover | |||
- XDEBUG_MODE=coverage ./vendor/bin/simple-phpunit -v --coverage-clover=coverage.clover |
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.
This fix is issued by following error:
PHP Fatal error: Uncaught SebastianBergmann\CodeCoverage\RuntimeException: XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set in /home/travis/build/peter279k/php-imgur-api-client/vendor/bin/.phpunit/phpunit-8.3-0/vendor/phpunit/php-code-coverage/src/Driver/Xdebug.php:50
Stack trace:
....
And the reference is available here.
Fix coding style via
|
Good job! |
Closes #34.