1
0
Fork 0
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:
Niels Keurentjes 2016-02-03 22:39:16 +01:00
parent f2a2b18367
commit 0dab63e050
20 changed files with 49 additions and 44 deletions

View file

@ -14,6 +14,7 @@ namespace Composer\Test\Util;
use Composer\Config;
use Composer\IO\NullIO;
use Composer\Util\Platform;
use Composer\Util\Svn;
class SvnTest extends \PHPUnit_Framework_TestCase
@ -131,10 +132,6 @@ class SvnTest extends \PHPUnit_Framework_TestCase
private function getCmd($cmd)
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
return strtr($cmd, "'", '"');
}
return $cmd;
return Platform::isWindows() ? strtr($cmd, "'", '"') : $cmd;
}
}