mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Use more BasePackage instead of PackageInterface
This commit is contained in:
parent
b209816056
commit
a6f1e803b1
7 changed files with 44 additions and 28 deletions
|
@ -31,8 +31,8 @@ class InstalledRepositoryTest extends TestCase
|
|||
$arrayRepoTwo->addPackage($bar = $this->getPackage('bar', '1'));
|
||||
$arrayRepoTwo->addPackage($bar2 = $this->getPackage('bar', '2'));
|
||||
|
||||
$foo->setReplaces(array(new Link('foo', 'provided', new MatchAllConstraint())));
|
||||
$bar2->setProvides(array(new Link('bar', 'provided', new MatchAllConstraint())));
|
||||
$foo->setReplaces(array('provided' => new Link('foo', 'provided', new MatchAllConstraint())));
|
||||
$bar2->setProvides(array('provided' => new Link('bar', 'provided', new MatchAllConstraint())));
|
||||
|
||||
$repo = new InstalledRepository(array($arrayRepoOne, $arrayRepoTwo));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue