Skip to content

Commit

Permalink
Fix failed Travis CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Sep 11, 2019
1 parent 1f02da9 commit 5932683
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Expand Up @@ -2,18 +2,21 @@ language: php


php: php:
- 5.6 - 5.6
- 7 - 7.0
- 7.1
- 7.2
- 7.3


install: install:
- composer self-update - composer self-update
- composer install --dev --no-interaction - composer update --no-interaction


before_script: before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter - chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build - ./cc-test-reporter before-build


script: phpunit --tap --coverage-clover build/logs/clover.xml script: vendor/bin/phpunit --coverage-clover build/logs/clover.xml


after_script: after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -7,7 +7,7 @@
"psr/log": "^1.0" "psr/log": "^1.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^5.0" "phpunit/phpunit": "^5.0 || ^6.5 || ^7.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions tests/ClientTest.php
Expand Up @@ -6,9 +6,9 @@
use GuzzleHttp\HandlerStack; use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware; use GuzzleHttp\Middleware;
use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Response;
use PHPUnit_Framework_TestCase; use PHPUnit\Framework\TestCase;


class ClientTest extends PHPUnit_Framework_TestCase class ClientTest extends TestCase
{ {


use MockClientTrait, use MockClientTrait,
Expand Down
4 changes: 2 additions & 2 deletions tests/JsonStreamTest.php
Expand Up @@ -3,9 +3,9 @@
namespace Shutterstock\Api; namespace Shutterstock\Api;


use GuzzleHttp\Psr7\Stream; use GuzzleHttp\Psr7\Stream;
use PHPUnit_Framework_TestCase; use PHPUnit\Framework\TestCase;


class JsonStreamTest extends PHPUnit_Framework_TestCase class JsonStreamTest extends TestCase
{ {


public function testIsInstanceOfJsonStream() public function testIsInstanceOfJsonStream()
Expand Down

0 comments on commit 5932683

Please sign in to comment.