From 10d3895f187b0be4346781eac5788e15753b2d7c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 24 May 2022 22:14:17 +0200 Subject: [PATCH] Ensure that dotfiles can be excluded, fixes #8866 --- .../Test/Package/Archiver/ArchivableFilesFinderTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php b/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php index 6aad38c2c..bd5cffe05 100644 --- a/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php +++ b/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php @@ -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',