Resolves #4138: Removed *Test.php filtering from AutoloadGenerator->dump()
parent
24168d9d5c
commit
6c029a850c
|
@ -183,7 +183,7 @@ EOF;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$whitelist = sprintf(
|
$whitelist = sprintf(
|
||||||
'{%s/%s.+(?<!(?<!/)Test\.php)$}',
|
'{%s/%s.+$}',
|
||||||
preg_quote($dir),
|
preg_quote($dir),
|
||||||
($psrType === 'psr-0' && strpos($namespace, '_') === false) ? preg_quote(strtr($namespace, '\\', '/')) : ''
|
($psrType === 'psr-0' && strpos($namespace, '_') === false) ? preg_quote(strtr($namespace, '\\', '/')) : ''
|
||||||
);
|
);
|
||||||
|
|
|
@ -164,9 +164,10 @@ class AutoloadGeneratorTest extends TestCase
|
||||||
->will($this->returnValue(array()));
|
->will($this->returnValue(array()));
|
||||||
|
|
||||||
$this->fs->ensureDirectoryExists($this->workingDir.'/composer');
|
$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');
|
$this->fs->ensureDirectoryExists($this->workingDir.'/lib');
|
||||||
file_put_contents($this->workingDir.'/src/Lala/ClassMapMain.php', '<?php namespace Lala; class ClassMapMain {}');
|
file_put_contents($this->workingDir.'/src/Lala/ClassMapMain.php', '<?php namespace Lala; class ClassMapMain {}');
|
||||||
|
file_put_contents($this->workingDir.'/src/Lala/Test/ClassMapMainTest.php', '<?php namespace Lala\Test; class ClassMapMainTest {}');
|
||||||
|
|
||||||
$this->fs->ensureDirectoryExists($this->workingDir.'/src-fruit');
|
$this->fs->ensureDirectoryExists($this->workingDir.'/src-fruit');
|
||||||
$this->fs->ensureDirectoryExists($this->workingDir.'/src-cake');
|
$this->fs->ensureDirectoryExists($this->workingDir.'/src-cake');
|
||||||
|
|
|
@ -9,4 +9,5 @@ return array(
|
||||||
'Acme\\Cake\\ClassMapBar' => $baseDir . '/src-cake/ClassMapBar.php',
|
'Acme\\Cake\\ClassMapBar' => $baseDir . '/src-cake/ClassMapBar.php',
|
||||||
'ClassMapFoo' => $baseDir . '/composersrc/foo.php',
|
'ClassMapFoo' => $baseDir . '/composersrc/foo.php',
|
||||||
'Lala\\ClassMapMain' => $baseDir . '/src/Lala/ClassMapMain.php',
|
'Lala\\ClassMapMain' => $baseDir . '/src/Lala/ClassMapMain.php',
|
||||||
|
'Lala\\Test\\ClassMapMainTest' => $baseDir . '/src/Lala/Test/ClassMapMainTest.php',
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue