Fixing cache engine tests

This commit is contained in:
Jose Lorenzo Rodriguez 2011-03-06 00:26:31 -04:30
parent eb709123a8
commit b286ff0523
4 changed files with 9 additions and 13 deletions

View file

@ -16,9 +16,8 @@
* @since CakePHP(tm) v 1.2.0.5434 * @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @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 * ApcEngineTest class

View file

@ -16,9 +16,8 @@
* @since CakePHP(tm) v 1.2.0.5434 * @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @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 * FileEngineTest class

View file

@ -16,10 +16,9 @@
* @since CakePHP(tm) v 1.2.0.5434 * @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
if (!class_exists('Cache')) {
require LIBS . 'cache.php'; App::uses('Cache', 'Cache');
} App::uses('MemcacheEngine', 'Cache/Engine');
require_once LIBS . 'cache' . DS . 'memcache.php';
class TestMemcacheEngine extends MemcacheEngine { class TestMemcacheEngine extends MemcacheEngine {
/** /**

View file

@ -16,9 +16,8 @@
* @since CakePHP(tm) v 1.2.0.5434 * @since CakePHP(tm) v 1.2.0.5434
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @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 * XcacheEngineTest class