summaryrefslogtreecommitdiffstats
path: root/tests/lib/memcache/xcache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-16 15:46:27 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-16 15:46:27 +0200
commit8ad148feaf975481815b3f2413fc1fa34b3e8be7 (patch)
tree3fca14ad8134eda1549b08623d153b8f15345038 /tests/lib/memcache/xcache.php
parent69048ab71f615ea7a219f7f119855319cf38621d (diff)
downloadnextcloud-server-8ad148feaf975481815b3f2413fc1fa34b3e8be7.tar.gz
nextcloud-server-8ad148feaf975481815b3f2413fc1fa34b3e8be7.zip
memcache: some additional unit tests
Diffstat (limited to 'tests/lib/memcache/xcache.php')
-rw-r--r--tests/lib/memcache/xcache.php29
1 files changed, 9 insertions, 20 deletions
diff --git a/tests/lib/memcache/xcache.php b/tests/lib/memcache/xcache.php
index 48773533c89..f59afda3966 100644
--- a/tests/lib/memcache/xcache.php
+++ b/tests/lib/memcache/xcache.php
@@ -1,31 +1,20 @@
<?php
+
/**
- * ownCloud
- *
- * @author Robin Appelman
- * @copyright 2012 Robin Appelman icewind@owncloud.com
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
- *
- * You should have received a copy of the GNU Affero General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
+ * 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_XCache extends Test_Cache {
+namespace Test\Memcache;
+
+class XCache extends Cache {
public function setUp() {
if (!\OC\Memcache\XCache::isAvailable()) {
$this->markTestSkipped('The xcache extension is not available.');
return;
}
- $this->instance = new \OC\Memcache\XCache();
+ $this->instance = new \OC\Memcache\XCache(uniqid());
}
}