Fixed bug #14631: Caching framework memcached backend: Wrong memcache server detectio...
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jun 2010 12:03:36 +0000 (12:03 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jun 2010 12:03:36 +0000 (12:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7818 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
tests/t3lib/cache/backend/t3lib_cache_backend_memcachedbackendtestcase.php

index 6c836eb..03c43a8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 
 2010-06-06  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Fixed bug #14631: Caching framework memcached backend: Wrong memcache server detection in unit tests
        * Follow-up to #11386: Caching framework file backend does not return absolute path in getCacheDirectory()
        * Fixed bug #14455: [Performance] Wrong variable in t3lib_cache_memcachedbackend leads to redundant data (Thanks to Dan Osipov)
 
index 6a82fd0..5b95f6b 100644 (file)
@@ -70,7 +70,9 @@ class t3lib_cache_backend_MemcachedBackendTestCase extends tx_phpunit_testcase {
                }
 
                try {
-                       fsockopen('localhost', 11211);
+                       if (!fsockopen('localhost', 11211)) {
+                               $this->markTestSkipped('memcached not reachable');
+                       }
                } catch (Exception $e) {
                        $this->markTestSkipped('memcached not reachable');
                }