Ensure that dotfiles can be excluded, fixes #8866
parent
25542aca70
commit
10d3895f18
|
@ -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…
Reference in New Issue