From 59326834cc4787340b37d8f5acefa5b0bd17e536 Mon Sep 17 00:00:00 2001 From: peter279k Date: Wed, 11 Sep 2019 13:52:21 +0800 Subject: [PATCH] Fix failed Travis CI build --- .travis.yml | 9 ++++++--- composer.json | 2 +- tests/ClientTest.php | 4 ++-- tests/JsonStreamTest.php | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index de52d2f..95b7a1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,18 +2,21 @@ language: php php: - 5.6 - - 7 + - 7.0 + - 7.1 + - 7.2 + - 7.3 install: - composer self-update - - composer install --dev --no-interaction + - composer update --no-interaction before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./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: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT diff --git a/composer.json b/composer.json index a59a7ff..fd72baa 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "psr/log": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^5.0" + "phpunit/phpunit": "^5.0 || ^6.5 || ^7.0" }, "autoload": { "psr-4": { diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 995cb55..81d996a 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -6,9 +6,9 @@ use GuzzleHttp\HandlerStack; use GuzzleHttp\Middleware; use GuzzleHttp\Psr7\Response; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class ClientTest extends PHPUnit_Framework_TestCase +class ClientTest extends TestCase { use MockClientTrait, diff --git a/tests/JsonStreamTest.php b/tests/JsonStreamTest.php index 00687af..e77676c 100644 --- a/tests/JsonStreamTest.php +++ b/tests/JsonStreamTest.php @@ -3,9 +3,9 @@ namespace Shutterstock\Api; 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()