MDL-34147 use cygwin style paths in phpunit hints

This commit is contained in:
Petr Škoda
2012-07-06 07:59:04 +02:00
parent f2867a8672
commit 880f8e7b84
3 changed files with 24 additions and 3 deletions
+7 -1
View File
@@ -74,6 +74,12 @@ class Hint_ResultPrinter extends PHPUnit_TextUI_ResultPrinter {
$file = substr($file, strlen($cwd)+1);
}
$this->write("\nTo re-run:\n phpunit $testName $file\n");
$executable = 'phpunit';
if (phpunit_bootstrap_is_cygwin()) {
$file = str_replace('\\', '/', $file);
$executable = 'phpunit.bat';
}
$this->write("\nTo re-run:\n $executable $testName $file\n");
}
}