1
0
Fork 0

Ensure that dotfiles can be excluded, fixes #8866

pull/10810/head
Jordi Boggiano 2022-05-24 22:14:17 +02:00
parent 25542aca70
commit 10d3895f18
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class ArchivableFilesFinderTest extends TestCase
);
$fileTree = array(
'.foo',
'A/prefixA.foo',
'A/prefixB.foo',
'A/prefixC.foo',
@ -109,6 +110,7 @@ class ArchivableFilesFinderTest extends TestCase
'/prefixA.foo',
'prefixC.*',
'!*/*/*/prefixC.foo',
'.*',
);
$this->finder = new ArchivableFilesFinder($this->sources, $excludes);
@ -213,6 +215,7 @@ class ArchivableFilesFinderTest extends TestCase
'/!important!.txt',
'/!important_too!.txt',
'/#weirdfile',
'/.foo',
'/A/prefixA.foo',
'/A/prefixB.foo',
'/A/prefixC.foo',