mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
88f25d501b
commit
0d02637352
2 changed files with 6 additions and 4 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue