Skiping ApcCache test if APC is not installed

This commit is contained in:
José Lorenzo Rodríguez 2010-09-19 21:07:03 -04:30 committed by mark_story
parent b52f78297f
commit 0a1bc06843

View file

@ -29,20 +29,6 @@ if (!class_exists('Cache')) {
*/
class ApcEngineTest extends CakeTestCase {
/**
* skip method
*
* @access public
* @return void
*/
function skip() {
$skip = true;
if (function_exists('apc_store')) {
$skip = false;
}
$this->skipIf($skip, '%s Apc is not installed or configured properly');
}
/**
* setUp method
*
@ -50,6 +36,7 @@ class ApcEngineTest extends CakeTestCase {
* @return void
*/
function setUp() {
$this->skipIf(!function_exists('apc_store'), '%s Apc is not installed or configured properly');
$this->_cacheDisable = Configure::read('Cache.disable');
Configure::write('Cache.disable', false);
Cache::config('apc', array('engine' => 'Apc', 'prefix' => 'cake_'));