|
@@ -170,7 +170,7 @@ class AutoloadGeneratorTest extends TestCase
|
|
|
|
|
|
$this->assertAutoloadFiles('classmap', $this->vendorDir.'/composer', 'classmap');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public function testMainPackageDevAutoloading()
|
|
|
{
|
|
|
$package = new Package('a', '1.0', '1.0');
|
|
@@ -181,6 +181,9 @@ class AutoloadGeneratorTest extends TestCase
|
|
|
));
|
|
|
$package->setDevAutoload(array(
|
|
|
'files' => array('devfiles/foo.php'),
|
|
|
+ 'psr-0' => array(
|
|
|
+ 'Main' => 'tests/'
|
|
|
+ ),
|
|
|
));
|
|
|
|
|
|
$this->repository->expects($this->once())
|
|
@@ -197,11 +200,11 @@ class AutoloadGeneratorTest extends TestCase
|
|
|
|
|
|
$this->generator->setDevMode(true);
|
|
|
$this->generator->dump($this->config, $this->repository, $package, $this->im, 'composer', true, '_1');
|
|
|
-
|
|
|
+
|
|
|
|
|
|
- $this->assertAutoloadFiles('main4', $this->vendorDir.'/composer');
|
|
|
+ $this->assertAutoloadFiles('main5', $this->vendorDir.'/composer');
|
|
|
$this->assertAutoloadFiles('classmap7', $this->vendorDir.'/composer', 'classmap');
|
|
|
-
|
|
|
+
|
|
|
|
|
|
$this->assertAutoloadFiles('files2', $this->vendorDir.'/composer', 'files');
|
|
|
}
|
|
@@ -238,7 +241,7 @@ class AutoloadGeneratorTest extends TestCase
|
|
|
|
|
|
$this->assertFalse(is_file($this->vendorDir.'/composer/autoload_files.php'));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public function testVendorDirSameAsWorkingDir()
|
|
|
{
|
|
|
$this->vendorDir = $this->workingDir;
|