mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
some clean up related to testsuite shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6741 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
48f0131d50
commit
7ab5c20577
3 changed files with 12 additions and 12 deletions
|
@ -44,10 +44,8 @@ if (!defined('PHP5')) {
|
||||||
require LIBS . 'cache.php';
|
require LIBS . 'cache.php';
|
||||||
|
|
||||||
Configure::getInstance();
|
Configure::getInstance();
|
||||||
|
|
||||||
$url = null;
|
$url = null;
|
||||||
|
|
||||||
App::import('Core', 'Session');
|
App::import('Core', array('Session', 'Security', 'String', 'Dispatcher'));
|
||||||
App::import('Core', 'Security');
|
|
||||||
App::import('Core', 'String');
|
|
||||||
App::import('Core', 'Dispatcher');
|
|
||||||
?>
|
?>
|
|
@ -92,7 +92,6 @@ class TestSuiteShell extends Shell {
|
||||||
|
|
||||||
$this->__installSimpleTest();
|
$this->__installSimpleTest();
|
||||||
|
|
||||||
require_once CAKE . 'dispatcher.php';
|
|
||||||
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php';
|
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php';
|
||||||
require_once CAKE . 'tests' . DS . 'lib' . DS . 'cli_reporter.php';
|
require_once CAKE . 'tests' . DS . 'lib' . DS . 'cli_reporter.php';
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
* @lastmodified $Date$
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
|
if (!class_exists('dispatcher')) {
|
||||||
|
require CAKE . 'dispatcher.php';
|
||||||
|
}
|
||||||
require_once CAKE_TESTS_LIB . 'cake_test_model.php';
|
require_once CAKE_TESTS_LIB . 'cake_test_model.php';
|
||||||
require_once CAKE_TESTS_LIB . 'cake_test_fixture.php';
|
require_once CAKE_TESTS_LIB . 'cake_test_fixture.php';
|
||||||
!App::import('Vendor', 'simpletest' . DS . 'unit_tester');
|
!App::import('Vendor', 'simpletest' . DS . 'unit_tester');
|
||||||
|
|
Loading…
Add table
Reference in a new issue