]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Cache/MemcachedCacheDriverTest.php
Move meaningful message inside Exception thrown in Cache tests
[friendica.git] / tests / src / Core / Cache / MemcachedCacheDriverTest.php
index 2484517424c476f0c0fbfa4c219158d776471d30..4872546b54c735fee5a3eeedf8eb774c292fa0b0 100644 (file)
@@ -19,8 +19,7 @@ class MemcachedCacheDriverTest extends MemoryCacheTest
                        try {
                                $this->cache = CacheDriverFactory::create('memcached');
                        } catch (\Exception $exception) {
-                               print "Memcached - TestCase failed: " . $exception->getMessage();
-                               throw new \Exception();
+                               throw new \Exception("Memcached - TestCase failed: " . $exception->getMessage(), $exception->getCode(), $exception);
                        }
                        return $this->cache;
                } else {