From 4e96c0525773eb92c4ac5e63e8916a8702167aba Mon Sep 17 00:00:00 2001 From: spiralbot Date: Fri, 8 Nov 2024 08:56:21 +0000 Subject: [PATCH] Update to use PHPUnit 10 syntax (#1163) --- composer.json | 4 ++-- tests/FileTestCase.php | 4 +--- tests/ManagerTestCase.php | 4 +--- tests/StorageTestCase.php | 4 +--- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index b5079fc..ce1a706 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ ], "require": { "php": ">=8.1", - "spiral/distribution": "^3.14.6", + "spiral/distribution": "^3.15", "league/flysystem": "^2.3.1 || ^3.0" }, "autoload": { @@ -35,7 +35,7 @@ } }, "require-dev": { - "spiral/boot": "^3.14.6", + "spiral/boot": "^3.15", "phpunit/phpunit": "^10.1", "vimeo/psalm": "^5.9", "jetbrains/phpstorm-attributes": "^1.0", diff --git a/tests/FileTestCase.php b/tests/FileTestCase.php index d59a8b1..b5b8d5c 100644 --- a/tests/FileTestCase.php +++ b/tests/FileTestCase.php @@ -6,9 +6,7 @@ use Spiral\Storage\Visibility; -/** - * @group unit - */ +#[\PHPUnit\Framework\Attributes\Group('unit')] class FileTestCase extends TestCase { public function testPathname(): void diff --git a/tests/ManagerTestCase.php b/tests/ManagerTestCase.php index 64b70a1..db6179f 100644 --- a/tests/ManagerTestCase.php +++ b/tests/ManagerTestCase.php @@ -10,9 +10,7 @@ use Spiral\Storage\Bucket; use Spiral\Storage\Visibility; -/** - * @group unit - */ +#[\PHPUnit\Framework\Attributes\Group('unit')] class ManagerTestCase extends TestCase { /** diff --git a/tests/StorageTestCase.php b/tests/StorageTestCase.php index d099d05..4fd3032 100644 --- a/tests/StorageTestCase.php +++ b/tests/StorageTestCase.php @@ -8,9 +8,7 @@ use Spiral\Storage\Bucket; use Spiral\Storage\Visibility; -/** - * @group unit - */ +#[\PHPUnit\Framework\Attributes\Group('unit')] class StorageTestCase extends TestCase { public function testCreate(): void