Skip to content
Permalink
Browse files

Skiping memcache test if Memcache is not installed

  • Loading branch information...
lorenzo authored and markstory committed Sep 20, 2010
1 parent 5308663 commit e89860e07929d2abbfd4227c27cfe1e77927630c
Showing with 1 addition and 14 deletions.
  1. +1 −14 cake/tests/cases/libs/cache/memcache.test.php
@@ -29,27 +29,14 @@
*/
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
*
* @access public
* @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(

0 comments on commit e89860e

Please sign in to comment.
You can’t perform that action at this time.