1
0
Fork 0

Skip CWD-in-path test on Windows

pull/9404/head
Tanel Pipar 2020-11-03 12:20:44 +02:00
parent 4d05cbffe3
commit b57792a80a
1 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@
namespace Composer\Test\Package\Archiver; namespace Composer\Test\Package\Archiver;
use Composer\Util\Platform;
use ZipArchive; use ZipArchive;
use Composer\Package\Archiver\ZipArchiver; use Composer\Package\Archiver\ZipArchiver;
@ -28,8 +29,10 @@ class ZipArchiverTest extends ArchiverTest
'foo/bar/baz', 'foo/bar/baz',
'x/baz', 'x/baz',
'x/includeme', 'x/includeme',
'foo' . getcwd() . '/file.txt',
); );
if (!Platform::isWindows()) {
$files[] = 'foo' . getcwd() . '/file.txt';
}
// Set up repository // Set up repository
$this->setupDummyRepo($files); $this->setupDummyRepo($files);
$package = $this->setupPackage(); $package = $this->setupPackage();