Starting to write a new App::import() that keeps where possible the backwards compatibility

This commit is contained in:
Jose Lorenzo Rodriguez 2011-03-11 00:50:14 -04:30
parent 90b01b7ec3
commit e6b253ec0f
3 changed files with 40 additions and 34 deletions

View file

@ -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();