From 4d12bd24711baeccfa20c3cd6cded671bc8a8bc7 Mon Sep 17 00:00:00 2001 From: Juan Lotito Date: Tue, 11 Oct 2022 13:56:56 +0200 Subject: [PATCH] update to laravel 9 support --- composer.json | 6 +++--- phpunit.xml | 4 +--- tests/TestCase.php | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index eb4aa62..4267b5d 100644 --- a/composer.json +++ b/composer.json @@ -15,11 +15,11 @@ } }, "require": { - "illuminate/support": "^5.0 || ^6.0 || ^7.0 || ^8.0", - "illuminate/database": "^5.0 || ^6.0 || ^7.0 || ^8.0" + "illuminate/support": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/database": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "require-dev": { - "phpunit/phpunit": "^5.0", + "phpunit/phpunit": "^9.0", "mockery/mockery": "^0.9", "solarium/solarium": "^3.8" }, diff --git a/phpunit.xml b/phpunit.xml index a8070b8..ad5f708 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -3,13 +3,11 @@ xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd" backupGlobals="true" backupStaticAttributes="false" - cacheTokens="false" colors="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" forceCoversAnnotation="false" - mapTestClassNameToCoveredClassName="false" printerClass="PHPUnit_TextUI_ResultPrinter" bootstrap="./tests/bootstrap.php" processIsolation="false" @@ -18,7 +16,7 @@ stopOnIncomplete="false" stopOnSkipped="false" stopOnRisky="false" - testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader" + testSuiteLoaderFile="vendor/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php" timeoutForSmallTests="1" timeoutForMediumTests="10" timeoutForLargeTests="60" diff --git a/tests/TestCase.php b/tests/TestCase.php index b1ad9eb..c32afe7 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -5,7 +5,7 @@ */ class TestCase extends \PHPUnit\Framework\TestCase { - protected function tearDown() { + protected function tearDown(): void { Mockery::close(); parent::tearDown();