mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix Windows escaping in tests
This commit is contained in:
parent
8f974fe741
commit
0783b043d2
6 changed files with 23 additions and 20 deletions
|
@ -14,7 +14,6 @@ namespace Composer\Test\Util;
|
|||
|
||||
use Composer\Config;
|
||||
use Composer\IO\NullIO;
|
||||
use Composer\Util\Platform;
|
||||
use Composer\Util\Svn;
|
||||
use Composer\Test\TestCase;
|
||||
|
||||
|
@ -130,9 +129,4 @@ class SvnTest extends TestCase
|
|||
|
||||
$this->assertEquals($this->getCmd(" --no-auth-cache --username 'foo' --password 'bar' "), $reflMethod->invoke($svn));
|
||||
}
|
||||
|
||||
private function getCmd($cmd)
|
||||
{
|
||||
return Platform::isWindows() ? strtr($cmd, "'", '"') : $cmd;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue