1
0
Fork 0
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:
John Stevenson 2021-10-08 21:46:07 +01:00
parent 8f974fe741
commit 0783b043d2
6 changed files with 23 additions and 20 deletions

View file

@ -15,7 +15,6 @@ namespace Composer\Test\Downloader;
use Composer\Downloader\FossilDownloader;
use Composer\Test\TestCase;
use Composer\Util\Filesystem;
use Composer\Util\Platform;
class FossilDownloaderTest extends TestCase
{
@ -168,9 +167,4 @@ class FossilDownloaderTest extends TestCase
$this->assertEquals('source', $downloader->getInstallationSource());
}
private function getCmd($cmd)
{
return Platform::isWindows() ? strtr($cmd, "'", '"') : $cmd;
}
}