MDL-43461 testing: Avoid switching to .bat files when running MinGW

MinGW can not execute .bat files (http://sourceforge.net/p/mingw/bugs/1902)
so we should not switch to .bat files when running MinGW.
This commit is contained in:
David Monllao
2014-01-14 13:15:46 +08:00
parent c97c55a9b7
commit 7a9abcb675
4 changed files with 33 additions and 3 deletions
+3 -1
View File
@@ -108,7 +108,9 @@ class Hint_ResultPrinter extends PHPUnit_TextUI_ResultPrinter {
$executable = 'phpunit';
if (testing_is_cygwin()) {
$file = str_replace('\\', '/', $file);
$executable = 'phpunit.bat';
if (!testing_is_mingw()) {
$executable = 'phpunit.bat';
}
}
}