We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eadede commit d7b8a52Copy full SHA for d7b8a52
Tests/Store/MemcachedStoreTest.php
@@ -26,7 +26,10 @@ public static function setupBeforeClass()
26
{
27
$memcached = new \Memcached();
28
$memcached->addServer(getenv('MEMCACHED_HOST'), 11211);
29
- if (false === $memcached->getStats()) {
+ $memcached->get('foo');
30
+ $code = $memcached->getResultCode();
31
+
32
+ if (\Memcached::RES_SUCCESS !== $code && \Memcached::RES_NOTFOUND !== $code) {
33
self::markTestSkipped('Unable to connect to the memcache host');
34
}
35
0 commit comments