Skip to content

Commit 4178cac

Browse files
[Lock] fix tests
1 parent dd73e8f commit 4178cac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Store/StoreFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Cache\Adapter\AbstractAdapter;
16+
use Symfony\Component\Cache\Adapter\MemcachedAdapter;
1617
use Symfony\Component\Cache\Traits\RedisProxy;
1718
use Symfony\Component\Lock\Store\FlockStore;
1819
use Symfony\Component\Lock\Store\MemcachedStore;
@@ -56,7 +57,7 @@ public function validConnections()
5657
if (\extension_loaded('sysvsem')) {
5758
yield ['semaphore', SemaphoreStore::class];
5859
}
59-
if (class_exists(\Memcached::class) && class_exists(AbstractAdapter::class)) {
60+
if (class_exists(AbstractAdapter::class) && MemcachedAdapter::isSupported()) {
6061
yield ['memcached://server.com', MemcachedStore::class];
6162
yield ['memcached:?host[localhost]&host[localhost:12345]', MemcachedStore::class];
6263
}

0 commit comments

Comments
 (0)