Skiping memcache test if Memcache is not installed

This commit is contained in:
José Lorenzo Rodríguez 2010-09-19 21:11:25 -04:30 committed by mark_story
parent 53086635b3
commit e89860e079

View file

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