diff options
Diffstat (limited to 'tests/lib/cache/apc.php')
-rw-r--r-- | tests/lib/cache/apc.php | 6 |
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(); } } |