From 30cc728ac956f0052dbe027b9aa8e819ab47ae95 Mon Sep 17 00:00:00 2001 From: peter279k Date: Thu, 25 Oct 2018 16:02:42 +0800 Subject: [PATCH] Add php-7.2 test --- .travis.yml | 1 + composer.json | 4 ++-- test/unit/DecodeTest.php | 4 ++-- test/unit/EncoderTest.php | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2999b91..93c473d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: php php: - 7.1 + - 7.2 before_script: - composer update --prefer-source --ignore-platform-reqs diff --git a/composer.json b/composer.json index 7172f14..f4bd6e3 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ } ], "require": { - "php": "~7.0" + "php": "~7.1" }, "require-dev": { - "phpunit/phpunit": "^5.7" + "phpunit/phpunit": "^6.5" }, "autoload": { "psr-4": { diff --git a/test/unit/DecodeTest.php b/test/unit/DecodeTest.php index 61e81d8..9dfd5d3 100644 --- a/test/unit/DecodeTest.php +++ b/test/unit/DecodeTest.php @@ -4,13 +4,13 @@ namespace PSR7SessionEncodeDecodeTest; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use PSR7SessionEncodeDecode\Decoder; /** * @covers \PSR7SessionEncodeDecode\Decoder */ -class DecodeTest extends PHPUnit_Framework_TestCase +class DecodeTest extends TestCase { /** * @var Decoder diff --git a/test/unit/EncoderTest.php b/test/unit/EncoderTest.php index 29cb6a5..639680e 100644 --- a/test/unit/EncoderTest.php +++ b/test/unit/EncoderTest.php @@ -4,13 +4,13 @@ namespace PSR7SessionEncodeDecodeTest; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use PSR7SessionEncodeDecode\Encoder; /** * @covers \PSR7SessionEncodeDecode\Encoder */ -class EncoderTest extends PHPUnit_Framework_TestCase +class EncoderTest extends TestCase { /** * @var Encoder