diff --git a/.travis.yml b/.travis.yml index 5c1f0f7..ac02959 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: php php: - 7.0 - 7.1 + - 7.2 matrix: include: @@ -14,6 +15,10 @@ matrix: env: dependencies=lowest - php: 7.1 env: dependencies=highest + - php: 7.2 + env: dependencies=lowest + - php: 7.2 + env: dependencies=highest before_script: - composer self-update -q diff --git a/composer.json b/composer.json index eba0d33..947c334 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "psr/log": "~1.0" }, "require-dev": { - "phpunit/phpunit": "~5.5", + "phpunit/phpunit": "~6.0", "pimple/pimple": "~3.0" }, "suggest": { diff --git a/tests/CsrfErrorResponseMiddlewareTest.php b/tests/CsrfErrorResponseMiddlewareTest.php index b42c0cc..a2c0a14 100644 --- a/tests/CsrfErrorResponseMiddlewareTest.php +++ b/tests/CsrfErrorResponseMiddlewareTest.php @@ -6,6 +6,7 @@ use Chubbyphp\Csrf\CsrfTokenGeneratorInterface; use Chubbyphp\Csrf\CsrfErrorResponseMiddleware; use Chubbyphp\Session\SessionInterface; +use PHPUnit\Framework\TestCase; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use Psr\Log\LoggerInterface; @@ -13,7 +14,7 @@ /** * @covers \Chubbyphp\Csrf\CsrfErrorResponseMiddleware */ -final class CsrfErrorResponseMiddlewareTest extends \PHPUnit_Framework_TestCase +final class CsrfErrorResponseMiddlewareTest extends TestCase { public function testInvokeWithGetRequestWithoutNext() { diff --git a/tests/CsrfMiddlewareTest.php b/tests/CsrfMiddlewareTest.php index f6d4696..6f94d4a 100644 --- a/tests/CsrfMiddlewareTest.php +++ b/tests/CsrfMiddlewareTest.php @@ -6,6 +6,7 @@ use Chubbyphp\Csrf\CsrfMiddleware; use Chubbyphp\ErrorHandler\HttpException; use Chubbyphp\Session\SessionInterface; +use PHPUnit\Framework\TestCase; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use Psr\Log\LoggerInterface; @@ -13,7 +14,7 @@ /** * @covers \Chubbyphp\Csrf\CsrfMiddleware */ -final class CsrfMiddlewareTest extends \PHPUnit_Framework_TestCase +final class CsrfMiddlewareTest extends TestCase { public function testInvokeWithGetRequestWithoutNext() { diff --git a/tests/CsrfProviderTest.php b/tests/CsrfProviderTest.php index 3752f77..919efad 100644 --- a/tests/CsrfProviderTest.php +++ b/tests/CsrfProviderTest.php @@ -8,6 +8,7 @@ use Chubbyphp\Csrf\CsrfTokenGeneratorInterface; use Chubbyphp\ErrorHandler\HttpException; use Chubbyphp\Session\SessionInterface; +use PHPUnit\Framework\TestCase; use Pimple\Container; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; @@ -15,7 +16,7 @@ /** * @covers \Chubbyphp\Csrf\CsrfProvider */ -final class CsrfProviderTest extends \PHPUnit_Framework_TestCase +final class CsrfProviderTest extends TestCase { public function testRegister() { diff --git a/tests/CsrfTokenGeneratorTest.php b/tests/CsrfTokenGeneratorTest.php index 0943529..282a4aa 100644 --- a/tests/CsrfTokenGeneratorTest.php +++ b/tests/CsrfTokenGeneratorTest.php @@ -3,11 +3,12 @@ namespace Chubbyphp\Tests\Csrf; use Chubbyphp\Csrf\CsrfTokenGenerator; +use PHPUnit\Framework\TestCase; /** * @covers \Chubbyphp\Csrf\CsrfTokenGenerator */ -final class CsrfTokenGeneratorTest extends \PHPUnit_Framework_TestCase +final class CsrfTokenGeneratorTest extends TestCase { public function testGenerate() {