Skip to content

Commit

Permalink
Skiping ApcCache test if APC 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 b52f782 commit 0a1bc06
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions cake/tests/cases/libs/cache/apc.test.php
Expand Up @@ -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_'));
Expand Down

0 comments on commit 0a1bc06

Please sign in to comment.