1
0
Fork 0
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:
Jordi Boggiano 2021-10-17 14:43:34 +02:00
parent b209816056
commit a6f1e803b1
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
7 changed files with 44 additions and 28 deletions

View file

@ -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));