From 98de300878b5b9143366f8144b3d92a91db197f3 Mon Sep 17 00:00:00 2001 From: msiebeneicher Date: Thu, 12 Feb 2015 09:49:42 +0100 Subject: [PATCH] * Small improvement of the testExcludeFromClassmap unit test --- tests/Composer/Test/Autoload/AutoloadGeneratorTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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');