apc.enable_cli must be activated for the APC test to execute in unit tests (which are run from CLI) duh!

This commit is contained in:
rodneyrehm
2011-09-20 17:33:15 +00:00
parent bff28f38a4
commit a3dc61542d

View File

@@ -17,12 +17,6 @@ class Smarty_CacheResource_Apc extends Smarty_CacheResource_KeyValueStore {
if(!function_exists('apc_cache_info')) {
throw new Exception('APC Template Caching Error: APC is not installed');
}
apc_store(array('foo' => 'bar'));
$t = apc_fetch(array('foo'));
if (!$t || $t['foo'] != 'bar') {
throw new Exception('APC Template Caching Error: APC is not working properly');
}
}
/**