mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 19:42:41 +00:00
Starting to write a new App::import() that keeps where possible the backwards compatibility
This commit is contained in:
parent
90b01b7ec3
commit
e6b253ec0f
3 changed files with 40 additions and 34 deletions
|
@ -85,7 +85,8 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner {
|
|||
}
|
||||
throw new RuntimeException(__('Could not find fixture manager %s.', $arguments['fixtureManager']));
|
||||
}
|
||||
if (App::import('Lib', 'test_suite/AppFixtureManager')) {
|
||||
App::uses('AppFixtureManager', 'TestSuite');
|
||||
if (class_exists('AppFixtureManager')) {
|
||||
return new AppFixtureManager();
|
||||
}
|
||||
return new CakeFixtureManager();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue