mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Changing some requires so things run smoother.
This commit is contained in:
parent
ba63a2948c
commit
0b18fc25a6
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
|
|
|
@ -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 {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue