Skip apc test when apc is not enabled for CLI
This commit is contained in:
parent
f242e658c3
commit
70c7ee6fc7
|
@ -22,10 +22,14 @@
|
||||||
|
|
||||||
class Test_Cache_APC extends Test_Cache {
|
class Test_Cache_APC extends Test_Cache {
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
if(!function_exists('apc_store')){
|
if(!extension_loaded('apc')){
|
||||||
$this->markTestSkipped('The apc extension is not available.');
|
$this->markTestSkipped('The apc extension is not available.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(!ini_get('apc.enable_cli') && OC::$CLI){
|
||||||
|
$this->markTestSkipped('apc not available in CLI.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->instance=new OC_Cache_APC();
|
$this->instance=new OC_Cache_APC();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue