mirror of
https://github.com/symfony/cache.git
synced 2026-03-23 23:22:07 +01:00
run tests using PHPUnit 11.5
This commit is contained in:
committed by
Christian Flothmann
parent
c3b75774a9
commit
f428a7e796
@@ -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 <aj.cerezo@gmail.com>
|
||||
*/
|
||||
#[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',
|
||||
];
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.3/phpunit.xsd"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
|
||||
backupGlobals="false"
|
||||
colors="true"
|
||||
bootstrap="vendor/autoload.php"
|
||||
failOnDeprecation="true"
|
||||
failOnRisky="true"
|
||||
failOnWarning="true"
|
||||
>
|
||||
@@ -24,7 +25,7 @@
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<coverage>
|
||||
<source ignoreSuppressionOfDeprecations="true">
|
||||
<include>
|
||||
<directory>./</directory>
|
||||
</include>
|
||||
@@ -32,23 +33,11 @@
|
||||
<directory>./Tests</directory>
|
||||
<directory>./vendor</directory>
|
||||
</exclude>
|
||||
</coverage>
|
||||
</source>
|
||||
|
||||
<listeners>
|
||||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
|
||||
<arguments>
|
||||
<array>
|
||||
<element key="time-sensitive">
|
||||
<array>
|
||||
<element key="0"><string>Cache\IntegrationTests</string></element>
|
||||
<element key="1"><string>Symfony\Component\Cache</string></element>
|
||||
<element key="2"><string>Symfony\Component\Cache\Tests\Fixtures</string></element>
|
||||
<element key="3"><string>Symfony\Component\Cache\Tests\Traits</string></element>
|
||||
<element key="4"><string>Symfony\Component\Cache\Traits</string></element>
|
||||
</array>
|
||||
</element>
|
||||
</array>
|
||||
</arguments>
|
||||
</listener>
|
||||
</listeners>
|
||||
<extensions>
|
||||
<bootstrap class="Symfony\Bridge\PhpUnit\SymfonyExtension">
|
||||
<parameter name="clock-mock-namespaces" value="Cache\IntegrationTests,Symfony\Component\Cache,Symfony\Component\Cache\Tests\Fixtures,Symfony\Component\Cache\Tests\Traits,Symfony\Component\Cache\Traits" />
|
||||
</bootstrap>
|
||||
</extensions>
|
||||
</phpunit>
|
||||
|
||||
Reference in New Issue
Block a user