mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Minor fixes and updated the rest of the code/tests to use HttpDownloader
This commit is contained in:
parent
56805ecafe
commit
713bc4de1d
51 changed files with 461 additions and 436 deletions
|
@ -63,7 +63,9 @@ class InstallerTest extends TestCase
|
|||
->getMock();
|
||||
$config = $this->getMockBuilder('Composer\Config')->getMock();
|
||||
|
||||
$repositoryManager = new RepositoryManager($io, $config);
|
||||
$eventDispatcher = $this->getMockBuilder('Composer\EventDispatcher\EventDispatcher')->disableOriginalConstructor()->getMock();
|
||||
$httpDownloader = $this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock();
|
||||
$repositoryManager = new RepositoryManager($io, $config, $eventDispatcher, $httpDownloader);
|
||||
$repositoryManager->setLocalRepository(new InstalledArrayRepository());
|
||||
|
||||
if (!is_array($repositories)) {
|
||||
|
@ -76,7 +78,6 @@ class InstallerTest extends TestCase
|
|||
$locker = $this->getMockBuilder('Composer\Package\Locker')->disableOriginalConstructor()->getMock();
|
||||
$installationManager = new InstallationManagerMock();
|
||||
|
||||
$eventDispatcher = $this->getMockBuilder('Composer\EventDispatcher\EventDispatcher')->disableOriginalConstructor()->getMock();
|
||||
$autoloadGenerator = $this->getMockBuilder('Composer\Autoload\AutoloadGenerator')->disableOriginalConstructor()->getMock();
|
||||
|
||||
$installer = new Installer($io, $config, clone $rootPackage, $downloadManager, $repositoryManager, $locker, $installationManager, $eventDispatcher, $autoloadGenerator);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue