summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-13 04:29:20 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-13 04:29:20 +0200
commit11e9ce25e622ea3a98c8085717541620fb878a69 (patch)
tree4cc0563d51768efa01a92a7333f370a4d0ccf3d3 /tests/lib/cache
parent141ff806c6cfbd349ffa232502a89a620882c409 (diff)
parentd386bc8737374200b4dc8ca0b62e432757ac2f04 (diff)
downloadnextcloud-server-11e9ce25e622ea3a98c8085717541620fb878a69.tar.gz
nextcloud-server-11e9ce25e622ea3a98c8085717541620fb878a69.zip
merge master into filesystem
Diffstat (limited to 'tests/lib/cache')
-rw-r--r--tests/lib/cache/apc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/cache/apc.php b/tests/lib/cache/apc.php
index 0e0edcf58f3..f68b97bcbd9 100644
--- a/tests/lib/cache/apc.php
+++ b/tests/lib/cache/apc.php
@@ -22,10 +22,14 @@
class Test_Cache_APC extends Test_Cache {
public function setUp() {
- if(!function_exists('apc_store')){
+ 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();
}
}