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
This commit is contained in:
mariano.iglesias 2008-05-11 18:15:36 +00:00
parent d7a171ecf2
commit a86b682146
2 changed files with 1 additions and 3 deletions

View file

@ -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());

View file

@ -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);