Skip to content
Permalink
Browse files

Skiping ApcCache test if APC is not installed

  • Loading branch information...
lorenzo authored and markstory committed Sep 20, 2010
1 parent b52f782 commit 0a1bc068431b012923bab8379b8cdaa27cccf265
Showing with 1 addition and 14 deletions.
  1. +1 −14 cake/tests/cases/libs/cache/apc.test.php
@@ -29,27 +29,14 @@
*/
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
*
* @access public
* @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_'));

0 comments on commit 0a1bc06

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