Fixing issue where double path separator was being used under Windows

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6792 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2008-05-10 17:15:16 +00:00
parent 88f25d501b
commit 0d02637352
2 changed files with 6 additions and 4 deletions

View file

@ -119,6 +119,9 @@ CakePHPTestHeader();
CakePHPTestSuiteHeader(); CakePHPTestSuiteHeader();
define('RUN_TEST_LINK', $_SERVER['PHP_SELF']); define('RUN_TEST_LINK', $_SERVER['PHP_SELF']);
if (isset($_GET['case'])) {
$_GET['case'] = str_replace(DS.DS,DS,$_GET['case']);
}
if (isset($_GET['group'])) { if (isset($_GET['group'])) {
if ('all' == $_GET['group']) { if ('all' == $_GET['group']) {
TestManager::runAllTests(CakeTestsGetReporter()); TestManager::runAllTests(CakeTestsGetReporter());
@ -135,7 +138,6 @@ if (isset($_GET['group'])) {
CakePHPTestRunMore(); CakePHPTestRunMore();
CakePHPTestAnalyzeCodeCoverage(); CakePHPTestAnalyzeCodeCoverage();
} elseif (isset($_GET['case'])) { } elseif (isset($_GET['case'])) {
if ($analyzeCodeCoverage) { if ($analyzeCodeCoverage) {
CodeCoverageManager::start($_GET['case'], CakeTestsGetReporter()); CodeCoverageManager::start($_GET['case'], CakeTestsGetReporter());
} }

View file

@ -412,10 +412,10 @@ if (function_exists('caketestsgetreporter')) {
switch (CAKE_TEST_OUTPUT) { switch (CAKE_TEST_OUTPUT) {
case CAKE_TEST_OUTPUT_HTML: case CAKE_TEST_OUTPUT_HTML:
require_once CAKE_TESTS_LIB . 'cake_reporter.php'; require_once CAKE_TESTS_LIB . 'cake_reporter.php';
$Reporter = new CakeHtmlReporter(); $Reporter =& new CakeHtmlReporter();
break; break;
default: default:
$Reporter = new TextReporter(); $Reporter =& new TextReporter();
break; break;
} }
} }