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