diff --git a/cake/bootstrap.php b/cake/bootstrap.php index b50a198c0..a727b6e7c 100644 --- a/cake/bootstrap.php +++ b/cake/bootstrap.php @@ -44,10 +44,8 @@ if (!defined('PHP5')) { require LIBS . 'cache.php'; Configure::getInstance(); + $url = null; - App::import('Core', 'Session'); - App::import('Core', 'Security'); - App::import('Core', 'String'); - App::import('Core', 'Dispatcher'); + App::import('Core', array('Session', 'Security', 'String', 'Dispatcher')); ?> \ No newline at end of file diff --git a/cake/console/libs/testsuite.php b/cake/console/libs/testsuite.php index 7224be880..5ee0f46b4 100644 --- a/cake/console/libs/testsuite.php +++ b/cake/console/libs/testsuite.php @@ -1,9 +1,9 @@ __installSimpleTest(); - require_once CAKE . 'dispatcher.php'; require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php'; require_once CAKE . 'tests' . DS . 'lib' . DS . 'cli_reporter.php'; @@ -129,7 +128,7 @@ class TestSuiteShell extends Shell { $this->file = Inflector::underscore($this->args[2]); } } - + if (isset($this->args[3]) && $this->args[3] == 'cov') { $this->doCoverage = true; } @@ -247,7 +246,7 @@ class TestSuiteShell extends Shell { if ($this->type == 'all') { return TestManager::runAllTests($reporter); } - + if ($this->type == 'group') { $ucFirstGroup = ucfirst($this->file); @@ -263,9 +262,9 @@ class TestSuiteShell extends Shell { $case = 'libs'.DS.$this->file.'.test.php'; if ($this->category == 'app') { - $case = $this->file.'.test.php'; + $case = $this->file.'.test.php'; } elseif ($this->isPluginTest) { - $case = $this->file.'.test.php'; + $case = $this->file.'.test.php'; } if ($this->doCoverage) { diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index 92325944c..ef2894c5d 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/cake/tests/lib/cake_test_case.php @@ -26,6 +26,9 @@ * @lastmodified $Date$ * @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_fixture.php'; !App::import('Vendor', 'simpletest' . DS . 'unit_tester');