diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index efb9a012c..99ef17fa4 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -1207,7 +1207,7 @@ EOF; 'Acme\Cake\\' => array('src-cake/', 'lib-cake/'), ), 'classmap' => array('composersrc/'), - 'exclude-from-classmap' => array('/tests/'), + 'exclude-from-classmap' => array('/tests/', 'Exclude.php'), )); $this->repository->expects($this->once()) @@ -1225,11 +1225,12 @@ EOF; file_put_contents($this->workingDir.'/src-cake/ClassMapBar.php', 'fs->ensureDirectoryExists($this->workingDir.'/composersrc'); + $this->fs->ensureDirectoryExists($this->workingDir.'/composersrc/tests'); file_put_contents($this->workingDir.'/composersrc/foo.php', 'fs->ensureDirectoryExists($this->workingDir.'/composersrc/tests'); + // this classes should not be found in the classmap file_put_contents($this->workingDir.'/composersrc/tests/bar.php', 'workingDir.'/composersrc/ClassToExclude.php', 'generator->dump($this->config, $this->repository, $package, $this->im, 'composer', true, '_1');