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