Skip CWD-in-path test on Windows
parent
4d05cbffe3
commit
b57792a80a
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue