From a86b6821460b4375c8ecdb2adba5df2ae120a2f9 Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Sun, 11 May 2008 18:15:36 +0000 Subject: [PATCH] Moving fixing of double path into CodeCoverageManager::start git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6803 3807eeeb-6ff5-0310-8944-8be069107fe0 --- app/webroot/test.php | 3 --- cake/tests/lib/code_coverage_manager.php | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/webroot/test.php b/app/webroot/test.php index af8baf830..4f371261d 100644 --- a/app/webroot/test.php +++ b/app/webroot/test.php @@ -119,9 +119,6 @@ CakePHPTestHeader(); CakePHPTestSuiteHeader(); 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 ('all' == $_GET['group']) { TestManager::runAllTests(CakeTestsGetReporter()); diff --git a/cake/tests/lib/code_coverage_manager.php b/cake/tests/lib/code_coverage_manager.php index 737424391..d8d3ed8d4 100644 --- a/cake/tests/lib/code_coverage_manager.php +++ b/cake/tests/lib/code_coverage_manager.php @@ -96,6 +96,7 @@ class CodeCoverageManager { $manager =& CodeCoverageManager::getInstance(); $manager->reporter = $reporter; + $testCaseFile = str_replace(DS.DS, DS, $testCaseFile); $thisFile = str_replace('.php', '.test.php', basename(__FILE__)); if (strpos($testCaseFile, $thisFile) !== false) { trigger_error('Xdebug supports no parallel coverage analysis - so this is not possible.', E_USER_ERROR);