diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-24 21:50:15 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-24 21:50:15 +0200 |
commit | 25003fb21380b71f7c098b8e27263031103e1655 (patch) | |
tree | 3b742fe31dc3ffb3bd43393f6c479567b2304fad /tests/lib | |
parent | 9a97875977ed2f319ef18f13786687c09084cb02 (diff) | |
download | nextcloud-server-25003fb21380b71f7c098b8e27263031103e1655.tar.gz nextcloud-server-25003fb21380b71f7c098b8e27263031103e1655.zip |
Add ACPu memory cache
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/memcache/apc.php | 4 | ||||
-rw-r--r-- | tests/lib/memcache/apcu.php | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/lib/memcache/apc.php b/tests/lib/memcache/apc.php index 6b2a49470ba..e5d753a4fa5 100644 --- a/tests/lib/memcache/apc.php +++ b/tests/lib/memcache/apc.php @@ -15,6 +15,10 @@ class APC extends Cache { $this->markTestSkipped('The apc extension is not available.'); return; } + if(\OC\Memcache\APCu::isAvailable()) { + $this->markTestSkipped('The apc extension is emulated by ACPu.'); + return; + } $this->instance=new \OC\Memcache\APC(uniqid()); } } diff --git a/tests/lib/memcache/apcu.php b/tests/lib/memcache/apcu.php new file mode 100644 index 00000000000..7b99e7cd5e0 --- /dev/null +++ b/tests/lib/memcache/apcu.php @@ -0,0 +1,20 @@ +<?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 APCu extends Cache { + public function setUp() { + if(!\OC\Memcache\APCu::isAvailable()) { + $this->markTestSkipped('The APCu extension is not available.'); + return; + } + $this->instance=new \OC\Memcache\APCu(uniqid()); + } +} |