mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
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:
@@ -17,12 +17,6 @@ class Smarty_CacheResource_Apc extends Smarty_CacheResource_KeyValueStore {
|
|||||||
if(!function_exists('apc_cache_info')) {
|
if(!function_exists('apc_cache_info')) {
|
||||||
throw new Exception('APC Template Caching Error: APC is not installed');
|
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');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user