File tree 1 file changed +2
-1
lines changed
src/Symfony/Component/Lock/Tests/Store 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 14
14
use Doctrine \DBAL \Connection ;
15
15
use PHPUnit \Framework \TestCase ;
16
16
use Symfony \Component \Cache \Adapter \AbstractAdapter ;
17
+ use Symfony \Component \Cache \Adapter \MemcachedAdapter ;
17
18
use Symfony \Component \Cache \Traits \RedisProxy ;
18
19
use Symfony \Component \Lock \Store \DoctrineDbalPostgreSqlStore ;
19
20
use Symfony \Component \Lock \Store \DoctrineDbalStore ;
@@ -66,7 +67,7 @@ public function validConnections()
66
67
if (\extension_loaded ('sysvsem ' )) {
67
68
yield ['semaphore ' , SemaphoreStore::class];
68
69
}
69
- if (class_exists (\Memcached ::class) && class_exists (AbstractAdapter::class )) {
70
+ if (class_exists (AbstractAdapter ::class) && MemcachedAdapter:: isSupported ( )) {
70
71
yield ['memcached://server.com ' , MemcachedStore::class];
71
72
yield ['memcached:?host[localhost]&host[localhost:12345] ' , MemcachedStore::class];
72
73
}
You can’t perform that action at this time.
0 commit comments