mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Unified all Windows tests throughout the code.
This commit is contained in:
parent
f2a2b18367
commit
0dab63e050
20 changed files with 49 additions and 44 deletions
|
@ -15,6 +15,7 @@ namespace Composer\Test\Downloader;
|
|||
use Composer\Downloader\HgDownloader;
|
||||
use Composer\TestCase;
|
||||
use Composer\Util\Filesystem;
|
||||
use Composer\Util\Platform;
|
||||
|
||||
class HgDownloaderTest extends TestCase
|
||||
{
|
||||
|
@ -156,10 +157,6 @@ class HgDownloaderTest extends TestCase
|
|||
|
||||
private function getCmd($cmd)
|
||||
{
|
||||
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||
return strtr($cmd, "'", '"');
|
||||
}
|
||||
|
||||
return $cmd;
|
||||
return Platform::isWindows() ? strtr($cmd, "'", '"') : $cmd;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue