mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Move root package handling to a dedicated loader and make ArrayLoader more strict
This commit is contained in:
parent
a2caa7c5e6
commit
f6b9488bf0
14 changed files with 86 additions and 62 deletions
|
@ -22,7 +22,6 @@ class FilesystemRepositoryTest extends TestCase
|
|||
$json = $this->createJsonFileMock();
|
||||
|
||||
$repository = new FilesystemRepository($json);
|
||||
$repository->setRepositoryManager($this->getMock('Composer\Repository\RepositoryManager'));
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
|
@ -51,7 +50,6 @@ class FilesystemRepositoryTest extends TestCase
|
|||
$json = $this->createJsonFileMock();
|
||||
|
||||
$repository = new FilesystemRepository($json);
|
||||
$repository->setRepositoryManager($this->getMock('Composer\Repository\RepositoryManager'));
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
|
@ -70,7 +68,6 @@ class FilesystemRepositoryTest extends TestCase
|
|||
$json = $this->createJsonFileMock();
|
||||
|
||||
$repository = new FilesystemRepository($json);
|
||||
$repository->setRepositoryManager($this->getMock('Composer\Repository\RepositoryManager'));
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
|
@ -85,7 +82,6 @@ class FilesystemRepositoryTest extends TestCase
|
|||
$json = $this->createJsonFileMock();
|
||||
|
||||
$repository = new FilesystemRepository($json);
|
||||
$repository->setRepositoryManager($this->getMock('Composer\Repository\RepositoryManager'));
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue