Skip to content
Snippets Groups Projects
Commit 70c7ee6f authored by Bart Visscher's avatar Bart Visscher
Browse files

Skip apc test when apc is not enabled for CLI

parent f242e658
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment