From a3dc61542d63d9c237259f757f48a115e2603dc5 Mon Sep 17 00:00:00 2001 From: rodneyrehm Date: Tue, 20 Sep 2011 17:33:15 +0000 Subject: [PATCH] apc.enable_cli must be activated for the APC test to execute in unit tests (which are run from CLI) duh! --- demo/plugins/cacheresource.apc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/demo/plugins/cacheresource.apc.php b/demo/plugins/cacheresource.apc.php index 5403f3bc..00ba5981 100644 --- a/demo/plugins/cacheresource.apc.php +++ b/demo/plugins/cacheresource.apc.php @@ -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'); - } } /**