From 9bc88e5e40c06a280707722ef644e5c8f9fd6bd1 Mon Sep 17 00:00:00 2001 From: gwoo Date: Tue, 17 Jun 2008 05:11:57 +0000 Subject: [PATCH] update to test_manager to make sure dispatcher is loaded git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7203 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/lib/test_manager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index 9fd4701d6..ed6f67562 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -525,6 +525,9 @@ if (function_exists('caketestsgetreporter')) { switch (CAKE_TEST_OUTPUT) { case CAKE_TEST_OUTPUT_HTML: ob_start(); + if (!class_exists('dispatcher')) { + require CAKE . 'dispatcher.php'; + } $dispatch =& new Dispatcher(); $dispatch->baseUrl(); define('BASE', $dispatch->webroot);