Commit b057efef by Qiang Xue

Merge pull request #120 from rinatio/119-apc-cache-unit-test

Check apc.enable_cli for ApcTestCase unit tests
parents e087533f 802c0c94
...@@ -17,6 +17,8 @@ class ApcCacheTest extends CacheTest ...@@ -17,6 +17,8 @@ class ApcCacheTest extends CacheTest
{ {
if(!extension_loaded("apc")) { if(!extension_loaded("apc")) {
$this->markTestSkipped("APC not installed. Skipping."); $this->markTestSkipped("APC not installed. Skipping.");
} else if ('cli' === PHP_SAPI && !ini_get('apc.enable_cli')) {
$this->markTestSkipped("APC cli is not enabled. Skipping.");
} }
if($this->_cacheInstance === null) { if($this->_cacheInstance === null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment