mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Rename include-paths to include-path, add deprecated warnings, only generate file if it is needed
This commit is contained in:
parent
91614af365
commit
3c07b4338a
5 changed files with 76 additions and 50 deletions
|
@ -283,7 +283,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
require($this->vendorDir."/.composer/include_paths.php")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public function testIncludePathsAreAppendedInAutoloadFile()
|
||||
{
|
||||
$package = new MemoryPackage('a', '1.0', '1.0');
|
||||
|
@ -314,7 +314,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
set_include_path($oldIncludePath);
|
||||
}
|
||||
|
||||
public function testIncludePathFileGenerationWithoutPaths()
|
||||
public function testIncludePathFileWithoutPathsIsSkipped()
|
||||
{
|
||||
$package = new MemoryPackage('a', '1.0', '1.0');
|
||||
$packages = array();
|
||||
|
@ -330,10 +330,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
|
||||
$this->generator->dump($this->repository, $package, $this->im, $this->vendorDir."/.composer");
|
||||
|
||||
$this->assertEquals(
|
||||
array(),
|
||||
require($this->vendorDir."/.composer/include_paths.php")
|
||||
);
|
||||
$this->assertFalse(file_exists($this->vendorDir."/.composer/include_paths.php"));
|
||||
}
|
||||
|
||||
private function createClassFile($basedir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue