mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Ensure that dotfiles can be excluded, fixes #8866
This commit is contained in:
parent
25542aca70
commit
10d3895f18
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,7 @@ class ArchivableFilesFinderTest extends TestCase
|
||||||
);
|
);
|
||||||
|
|
||||||
$fileTree = array(
|
$fileTree = array(
|
||||||
|
'.foo',
|
||||||
'A/prefixA.foo',
|
'A/prefixA.foo',
|
||||||
'A/prefixB.foo',
|
'A/prefixB.foo',
|
||||||
'A/prefixC.foo',
|
'A/prefixC.foo',
|
||||||
|
@ -109,6 +110,7 @@ class ArchivableFilesFinderTest extends TestCase
|
||||||
'/prefixA.foo',
|
'/prefixA.foo',
|
||||||
'prefixC.*',
|
'prefixC.*',
|
||||||
'!*/*/*/prefixC.foo',
|
'!*/*/*/prefixC.foo',
|
||||||
|
'.*',
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->finder = new ArchivableFilesFinder($this->sources, $excludes);
|
$this->finder = new ArchivableFilesFinder($this->sources, $excludes);
|
||||||
|
@ -213,6 +215,7 @@ class ArchivableFilesFinderTest extends TestCase
|
||||||
'/!important!.txt',
|
'/!important!.txt',
|
||||||
'/!important_too!.txt',
|
'/!important_too!.txt',
|
||||||
'/#weirdfile',
|
'/#weirdfile',
|
||||||
|
'/.foo',
|
||||||
'/A/prefixA.foo',
|
'/A/prefixA.foo',
|
||||||
'/A/prefixB.foo',
|
'/A/prefixB.foo',
|
||||||
'/A/prefixC.foo',
|
'/A/prefixC.foo',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue