Skip to content

Commit

Permalink
Skiping memcache test if Memcache is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo authored and markstory committed Sep 25, 2010
1 parent 5308663 commit e89860e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions cake/tests/cases/libs/cache/memcache.test.php
Expand Up @@ -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(
Expand Down

0 comments on commit e89860e

Please sign in to comment.