Skip to content

Commit 3472f50

Browse files
Merge branch '3.4' into 4.0
* 3.4: [Lock][Process][FrameworkBundle] fix tests Display a nice error message if the form/serializer component is missing. [SecurityBundle] providerIds is undefined error when firewall provider is not specified [SecurityBundle] providerIds is undefined error when firewall provider is not specified [SecurityBundle] providerIds is undefined error when firewall provider is not specified Force phpunit-bridge update (bis) [Bridge/PhpUnit] Fix disabling global state preservation Incorrect dot on method loadChoices in upgrade doc
2 parents 2e0c35e + d7b8a52 commit 3472f50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Store/MemcachedStoreTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ public static function setupBeforeClass()
2626
{
2727
$memcached = new \Memcached();
2828
$memcached->addServer(getenv('MEMCACHED_HOST'), 11211);
29-
if (false === $memcached->getStats()) {
29+
$memcached->get('foo');
30+
$code = $memcached->getResultCode();
31+
32+
if (\Memcached::RES_SUCCESS !== $code && \Memcached::RES_NOTFOUND !== $code) {
3033
self::markTestSkipped('Unable to connect to the memcache host');
3134
}
3235
}

0 commit comments

Comments
 (0)