diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-10-12 19:08:47 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-10-12 19:08:47 +0200 |
commit | 70c7ee6fc7e45f6f70ea0dddee2ad44cceed5c7b (patch) | |
tree | 50b9ca1bd9aeac258207fb527534fb5f380f6fca /tests/lib/cache | |
parent | f242e658c3e11febb3e8c91496a482704b462f64 (diff) | |
download | nextcloud-server-70c7ee6fc7e45f6f70ea0dddee2ad44cceed5c7b.tar.gz nextcloud-server-70c7ee6fc7e45f6f70ea0dddee2ad44cceed5c7b.zip |
Skip apc test when apc is not enabled for CLI
Diffstat (limited to 'tests/lib/cache')
-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(); } } |