summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-03-17 16:01:10 +0100
committerRobin Appelman <icewind@owncloud.com>2013-03-17 16:01:10 +0100
commit5418c98a81caba2da00b2e81fb56fe373737a7c8 (patch)
tree7e003d915e36d7130402a53e5cd2b0bc7c20f3db /tests
parent80a3f8d066b7deffe70a232ca956746db02db138 (diff)
downloadnextcloud-server-5418c98a81caba2da00b2e81fb56fe373737a7c8.tar.gz
nextcloud-server-5418c98a81caba2da00b2e81fb56fe373737a7c8.zip
Add memcached backend
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/memcache/memcached.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/memcache/memcached.php b/tests/lib/memcache/memcached.php
new file mode 100644
index 00000000000..a0be047ed1f
--- /dev/null
+++ b/tests/lib/memcache/memcached.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+class Test_Memcache_Memcached extends Test_Cache {
+ public function setUp() {
+ if (!\OC\Memcache\Memcached::isAvailable()) {
+ $this->markTestSkipped('The memcached extension is not available.');
+ return;
+ }
+ $this->instance = new \OC\Memcache\Memcached();
+ }
+}