From b1e02424e36d0b4897d9d7c84b417cb2756365f8 Mon Sep 17 00:00:00 2001 From: chadicus Date: Tue, 9 May 2023 14:36:48 -0400 Subject: [PATCH] Allow newer versions of PHPUnit --- composer.json | 2 +- tests/RequestBridgeTest.php | 3 ++- tests/ResponseBridgeTest.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8cf1333..d9d6a99 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "sort-packages": true }, "require-dev": { - "phpunit/phpunit": "^5.7", + "phpunit/phpunit": "^5.7 || ^6.5 || ^9.6 || ^10.1", "squizlabs/php_codesniffer": "^3.7" }, "autoload": { diff --git a/tests/RequestBridgeTest.php b/tests/RequestBridgeTest.php index e1e82ec..0d0c875 100644 --- a/tests/RequestBridgeTest.php +++ b/tests/RequestBridgeTest.php @@ -5,6 +5,7 @@ use Chadicus\Slim\OAuth2\Http\RequestBridge; use Laminas\Diactoros\ServerRequest; use Laminas\Diactoros\UploadedFile; +use PHPUnit\Framework\TestCase; /** * Unit tests for the \Chadicus\Slim\OAuth2\Http\RequestBridge class. @@ -12,7 +13,7 @@ * @coversDefaultClass \Chadicus\Slim\OAuth2\Http\RequestBridge * @covers :: */ -final class RequestBridgeTest extends \PHPUnit_Framework_TestCase +final class RequestBridgeTest extends TestCase { /** * Verify basic behavior of toOAuth2() diff --git a/tests/ResponseBridgeTest.php b/tests/ResponseBridgeTest.php index afdbde0..5dde0aa 100644 --- a/tests/ResponseBridgeTest.php +++ b/tests/ResponseBridgeTest.php @@ -4,6 +4,7 @@ use Chadicus\Slim\OAuth2\Http\ResponseBridge; use OAuth2\Response; +use PHPUnit\Framework\TestCase; /** * Unit tests for the \Chadicus\Slim\OAuth2\Http\ResponseBridge class. @@ -11,7 +12,7 @@ * @coversDefaultClass \Chadicus\Slim\OAuth2\Http\ResponseBridge * @covers :: */ -final class ResponseBridgeTest extends \PHPUnit_Framework_TestCase +final class ResponseBridgeTest extends TestCase { /** * Verify basic behavior of fromOAuth2()