1
0
Fork 0

Added test for exclude-from-classmap (see issue #8563)

pull/8575/head
Jeroen Versteeg 2020-02-04 12:55:57 +01:00
parent fb93036a70
commit cabf373bf4
1 changed files with 3 additions and 1 deletions

View File

@ -1525,6 +1525,8 @@ EOF;
'/composersrc/ClassToExclude.php', '/composersrc/ClassToExclude.php',
'/composersrc/*/excluded/excsubpath', '/composersrc/*/excluded/excsubpath',
'**/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'); $this->fs->ensureDirectoryExists($this->workingDir.'/composersrc/tests');
file_put_contents($this->workingDir.'/composersrc/foo.php', '<?php class ClassMapFoo {}'); file_put_contents($this->workingDir.'/composersrc/foo.php', '<?php class ClassMapFoo {}');
// this classes should not be found in the classmap // these classes should not be found in the classmap
$this->fs->ensureDirectoryExists($this->workingDir.'/composersrc/excludedTests'); $this->fs->ensureDirectoryExists($this->workingDir.'/composersrc/excludedTests');
file_put_contents($this->workingDir.'/composersrc/excludedTests/bar.php', '<?php class ClassExcludeMapFoo {}'); file_put_contents($this->workingDir.'/composersrc/excludedTests/bar.php', '<?php class ClassExcludeMapFoo {}');
file_put_contents($this->workingDir.'/composersrc/ClassToExclude.php', '<?php class ClassClassToExclude {}'); file_put_contents($this->workingDir.'/composersrc/ClassToExclude.php', '<?php class ClassClassToExclude {}');