diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 52166083c..3df98f700 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -183,7 +183,7 @@ EOF; continue; } $whitelist = sprintf( - '{%s/%s.+(?will($this->returnValue(array())); $this->fs->ensureDirectoryExists($this->workingDir.'/composer'); - $this->fs->ensureDirectoryExists($this->workingDir.'/src/Lala'); + $this->fs->ensureDirectoryExists($this->workingDir.'/src/Lala/Test'); $this->fs->ensureDirectoryExists($this->workingDir.'/lib'); file_put_contents($this->workingDir.'/src/Lala/ClassMapMain.php', 'workingDir.'/src/Lala/Test/ClassMapMainTest.php', 'fs->ensureDirectoryExists($this->workingDir.'/src-fruit'); $this->fs->ensureDirectoryExists($this->workingDir.'/src-cake'); diff --git a/tests/Composer/Test/Autoload/Fixtures/autoload_classmap.php b/tests/Composer/Test/Autoload/Fixtures/autoload_classmap.php index 2fe8ee07a..a33c6674a 100644 --- a/tests/Composer/Test/Autoload/Fixtures/autoload_classmap.php +++ b/tests/Composer/Test/Autoload/Fixtures/autoload_classmap.php @@ -9,4 +9,5 @@ return array( 'Acme\\Cake\\ClassMapBar' => $baseDir . '/src-cake/ClassMapBar.php', 'ClassMapFoo' => $baseDir . '/composersrc/foo.php', 'Lala\\ClassMapMain' => $baseDir . '/src/Lala/ClassMapMain.php', + 'Lala\\Test\\ClassMapMainTest' => $baseDir . '/src/Lala/Test/ClassMapMainTest.php', );