From 80a3f8d066b7deffe70a232ca956746db02db138 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 17 Mar 2013 16:00:39 +0100 Subject: Seperate memory based cache from OC_Cache --- tests/lib/cache/apc.php | 35 ----------------------------------- tests/lib/cache/xcache.php | 31 ------------------------------- tests/lib/memcache/apc.php | 31 +++++++++++++++++++++++++++++++ tests/lib/memcache/xcache.php | 31 +++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 66 deletions(-) delete mode 100644 tests/lib/cache/apc.php delete mode 100644 tests/lib/cache/xcache.php create mode 100644 tests/lib/memcache/apc.php create mode 100644 tests/lib/memcache/xcache.php (limited to 'tests/lib') diff --git a/tests/lib/cache/apc.php b/tests/lib/cache/apc.php deleted file mode 100644 index bb5eb483dbf..00000000000 --- a/tests/lib/cache/apc.php +++ /dev/null @@ -1,35 +0,0 @@ -. -* -*/ - -class Test_Cache_APC extends Test_Cache { - public function setUp() { - if(!extension_loaded('apc')) { - $this->markTestSkipped('The apc extension is not available.'); - return; - } - if(!ini_get('apc.enable_cli') && OC::$CLI) { - $this->markTestSkipped('apc not available in CLI.'); - return; - } - $this->instance=new OC_Cache_APC(); - } -} diff --git a/tests/lib/cache/xcache.php b/tests/lib/cache/xcache.php deleted file mode 100644 index 43bed2db037..00000000000 --- a/tests/lib/cache/xcache.php +++ /dev/null @@ -1,31 +0,0 @@ -. -* -*/ - -class Test_Cache_XCache extends Test_Cache { - public function setUp() { - if(!function_exists('xcache_get')) { - $this->markTestSkipped('The xcache extension is not available.'); - return; - } - $this->instance=new OC_Cache_XCache(); - } -} diff --git a/tests/lib/memcache/apc.php b/tests/lib/memcache/apc.php new file mode 100644 index 00000000000..e3dccc09669 --- /dev/null +++ b/tests/lib/memcache/apc.php @@ -0,0 +1,31 @@ +. +* +*/ + +class Test_Memcache_APC extends Test_Cache { + public function setUp() { + if(!\OC\Memcache\APC::isAvailable()) { + $this->markTestSkipped('The apc extension is not available.'); + return; + } + $this->instance=new \OC\Memcache\APC(); + } +} diff --git a/tests/lib/memcache/xcache.php b/tests/lib/memcache/xcache.php new file mode 100644 index 00000000000..48773533c89 --- /dev/null +++ b/tests/lib/memcache/xcache.php @@ -0,0 +1,31 @@ +. + * + */ + +class Test_Memcache_XCache extends Test_Cache { + public function setUp() { + if (!\OC\Memcache\XCache::isAvailable()) { + $this->markTestSkipped('The xcache extension is not available.'); + return; + } + $this->instance = new \OC\Memcache\XCache(); + } +} -- cgit v1.2.3