Skip to content

Commit

Permalink
Fixing cache engine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 6, 2011
1 parent eb70912 commit b286ff0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
5 changes: 2 additions & 3 deletions lib/Cake/tests/cases/libs/cache/apc.test.php
Expand Up @@ -16,9 +16,8 @@
* @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!class_exists('Cache')) {
require LIBS . 'cache.php';
}

App::uses('Cache', 'Cache');

/**
* ApcEngineTest class
Expand Down
5 changes: 2 additions & 3 deletions lib/Cake/tests/cases/libs/cache/file.test.php
Expand Up @@ -16,9 +16,8 @@
* @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!class_exists('Cache')) {
require LIBS . 'cache.php';
}

App::uses('Cache', 'Cache');

/**
* FileEngineTest class
Expand Down
7 changes: 3 additions & 4 deletions lib/Cake/tests/cases/libs/cache/memcache.test.php
Expand Up @@ -16,10 +16,9 @@
* @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!class_exists('Cache')) {
require LIBS . 'cache.php';
}
require_once LIBS . 'cache' . DS . 'memcache.php';

App::uses('Cache', 'Cache');
App::uses('MemcacheEngine', 'Cache/Engine');

class TestMemcacheEngine extends MemcacheEngine {
/**
Expand Down
5 changes: 2 additions & 3 deletions lib/Cake/tests/cases/libs/cache/xcache.test.php
Expand Up @@ -16,9 +16,8 @@
* @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!class_exists('Cache')) {
require LIBS . 'cache.php';
}

App::uses('Cache', 'Cache');

/**
* XcacheEngineTest class
Expand Down

0 comments on commit b286ff0

Please sign in to comment.