From 8a05b6a7d4d9e3f78dc14daa1b79617d4c175a21 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 24 Mar 2023 14:48:52 +0000 Subject: [PATCH 1/3] Bump PHPUnit dependencies --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a822bd3..1538d58 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "nunomaduro/larastan": "^2.4", - "phpunit/phpunit": "^9.5.10", + "phpunit/phpunit": "^10.0", "spatie/laravel-ignition": "^2.0" }, "autoload": { From 3f7f9eb4cdd02506229b99faad328ed716fdd074 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 24 Mar 2023 14:48:53 +0000 Subject: [PATCH 2/3] Ignore PHPUnit cache folder --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index abb1487..e54b69f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ .env .env.testing .env.backup -.phpunit.result.cache +/.phpunit.cache docker-compose.override.yml Homestead.json Homestead.yaml From 54df6a6474f0e6b260dac0551fbd86d43de72969 Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 24 Mar 2023 14:48:53 +0000 Subject: [PATCH 3/3] Define test classes as `final` --- tests/Feature/Api/UserActionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/Api/UserActionTest.php b/tests/Feature/Api/UserActionTest.php index 8ceebc2..6efdfd8 100644 --- a/tests/Feature/Api/UserActionTest.php +++ b/tests/Feature/Api/UserActionTest.php @@ -10,7 +10,7 @@ use Illuminate\Support\Str; use Tests\TestCase; -class UserActionTest extends TestCase +final class UserActionTest extends TestCase { use RefreshDatabase;