Changing some requires so things run smoother.

This commit is contained in:
mark_story 2010-12-04 17:53:57 -05:00
parent ba63a2948c
commit 0b18fc25a6
2 changed files with 3 additions and 4 deletions

View file

@ -211,9 +211,9 @@ class AppImportTest extends CakeTestCase {
$this->assertTrue($file); $this->assertTrue($file);
$this->assertTrue(class_exists('Shell')); $this->assertTrue(class_exists('Shell'));
$file = App::import('Lib', 'cache/Apc'); $file = App::import('Lib', 'config/PhpReader');
$this->assertTrue($file); $this->assertTrue($file);
$this->assertTrue(class_exists('ApcEngine')); $this->assertTrue(class_exists('PhpReader'));
$file = App::import('Model', 'SomeRandomModelThatDoesNotExist', false); $file = App::import('Model', 'SomeRandomModelThatDoesNotExist', false);
$this->assertFalse($file); $this->assertFalse($file);

View file

@ -20,8 +20,7 @@
if (!class_exists('Cache')) { if (!class_exists('Cache')) {
require LIBS . 'cache.php'; require LIBS . 'cache.php';
} }
App::import('Core', 'cache/Memcache'); require_once LIBS . 'cache' . DS . 'memcache.php';
class TestMemcacheEngine extends MemcacheEngine { class TestMemcacheEngine extends MemcacheEngine {
/** /**