From cabf373bf455b9ac7c78412b64beeffd93a3034c Mon Sep 17 00:00:00 2001 From: Jeroen Versteeg Date: Tue, 4 Feb 2020 12:55:57 +0100 Subject: [PATCH] Added test for exclude-from-classmap (see issue #8563) --- tests/Composer/Test/Autoload/AutoloadGeneratorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index ba89ccea9..5abed8657 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -1525,6 +1525,8 @@ EOF; '/composersrc/ClassToExclude.php', '/composersrc/*/excluded/excsubpath', '**/excsubpath', + 'composers', // should _not_ cause exclusion of /composersrc/** + '/src-ca/', // should _not_ cause exclusion of /src-cake/** ), )); @@ -1547,7 +1549,7 @@ EOF; $this->fs->ensureDirectoryExists($this->workingDir.'/composersrc/tests'); file_put_contents($this->workingDir.'/composersrc/foo.php', 'fs->ensureDirectoryExists($this->workingDir.'/composersrc/excludedTests'); file_put_contents($this->workingDir.'/composersrc/excludedTests/bar.php', 'workingDir.'/composersrc/ClassToExclude.php', '