Moving Dispatcher inside libs directory, as it is part of CakePHP's libs.

This commit is contained in:
mark_story 2010-11-14 00:00:23 -05:00
parent 6073ac5dfa
commit dad7963ea4
3 changed files with 9 additions and 7 deletions

View file

@ -36,12 +36,14 @@ class AllRoutingTest extends PHPUnit_Framework_TestSuite {
public static function suite() { public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('All Router and Dispatcher class tests'); $suite = new PHPUnit_Framework_TestSuite('All Router and Dispatcher class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'dispatcher.test.php'); $libs = CORE_TEST_CASES . DS . 'libs' . DS;
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'router.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'route' . DS . 'cake_route.test.php'); $suite->addTestFile($libs . 'dispatcher.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'route' . DS . 'plugin_short_route.test.php'); $suite->addTestFile($libs . 'router.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_response.test.php'); $suite->addTestFile($libs . 'route' . DS . 'cake_route.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_request.test.php'); $suite->addTestFile($libs . 'route' . DS . 'plugin_short_route.test.php');
$suite->addTestFile($libs . 'cake_response.test.php');
$suite->addTestFile($libs . 'cake_request.test.php');
return $suite; return $suite;
} }
} }

View file

@ -17,7 +17,7 @@
* @since CakePHP(tm) v 1.2.0.4206 * @since CakePHP(tm) v 1.2.0.4206
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
require_once CAKE . 'dispatcher.php'; App::import('Core', 'Dispatcher', false);
App::import('Core', 'CakeResponse', false); App::import('Core', 'CakeResponse', false);
if (!class_exists('AppController')) { if (!class_exists('AppController')) {