From f428a7e796b72fe9da22a4f8de4df48da70d737a Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 9 Oct 2024 11:06:51 +0200 Subject: [PATCH] run tests using PHPUnit 11.5 --- Tests/Adapter/CouchbaseBucketAdapterTest.php | 16 +++++------ phpunit.xml.dist | 29 ++++++-------------- 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/Tests/Adapter/CouchbaseBucketAdapterTest.php b/Tests/Adapter/CouchbaseBucketAdapterTest.php index 35c1591..7737d79 100644 --- a/Tests/Adapter/CouchbaseBucketAdapterTest.php +++ b/Tests/Adapter/CouchbaseBucketAdapterTest.php @@ -11,23 +11,23 @@ namespace Symfony\Component\Cache\Tests\Adapter; +use PHPUnit\Framework\Attributes\Group; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; +use PHPUnit\Framework\Attributes\RequiresPhpExtension; use Psr\Cache\CacheItemPoolInterface; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Cache\Adapter\AbstractAdapter; use Symfony\Component\Cache\Adapter\CouchbaseBucketAdapter; /** - * @requires extension couchbase <3.0.0 - * @requires extension couchbase >=2.6.0 - * - * @group legacy integration - * * @author Antonio Jose Cerezo Aranda */ +#[Group('integration')] +#[Group('legacy')] +#[IgnoreDeprecations] +#[RequiresPhpExtension('couchbase', '<3.0.0')] +#[RequiresPhpExtension('couchbase', '>=2.6.0')] class CouchbaseBucketAdapterTest extends AdapterTestCase { - use ExpectUserDeprecationMessageTrait; - protected $skippedTests = [ 'testClearPrefix' => 'Couchbase cannot clear by prefix', ]; diff --git a/phpunit.xml.dist b/phpunit.xml.dist index fb7c080..b3d6d81 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -24,7 +25,7 @@ - + ./ @@ -32,23 +33,11 @@ ./Tests ./vendor - + - - - - - - - Cache\IntegrationTests - Symfony\Component\Cache - Symfony\Component\Cache\Tests\Fixtures - Symfony\Component\Cache\Tests\Traits - Symfony\Component\Cache\Traits - - - - - - + + + + +