aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/memcache/redis.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/memcache/redis.php')
-rw-r--r--tests/lib/memcache/redis.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/lib/memcache/redis.php b/tests/lib/memcache/redis.php
deleted file mode 100644
index 2e3c5d735fe..00000000000
--- a/tests/lib/memcache/redis.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?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.
- */
-
-namespace Test\Memcache;
-
-class Redis extends Cache {
- static public function setUpBeforeClass() {
- parent::setUpBeforeClass();
-
- if (!\OC\Memcache\Redis::isAvailable()) {
- self::markTestSkipped('The redis extension is not available.');
- }
-
- set_error_handler(
- function($errno, $errstr) {
- restore_error_handler();
- self::markTestSkipped($errstr);
- },
- E_WARNING
- );
- $instance = new \OC\Memcache\Redis(self::getUniqueID());
- restore_error_handler();
-
- if ($instance->set(self::getUniqueID(), self::getUniqueID()) === false) {
- self::markTestSkipped('redis server seems to be down.');
- }
- }
-
- protected function setUp() {
- parent::setUp();
- $this->instance = new \OC\Memcache\Redis($this->getUniqueID());
- }
-}