1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00

Fix whatProvides returning too many results when no constraint is given

This commit is contained in:
Jordi Boggiano 2013-08-12 18:37:34 +02:00
parent 3346609c5d
commit 051d219438
2 changed files with 9 additions and 14 deletions

View file

@ -405,7 +405,7 @@ class SolverTest extends TestCase
{
$this->repoInstalled->addPackage($packageA = $this->getPackage('A', '1.0'));
$this->repo->addPackage($packageB = $this->getPackage('B', '1.0'));
$packageB->setReplaces(array('a' => new Link('B', 'A', null)));
$packageB->setReplaces(array('a' => new Link('B', 'A', new MultiConstraint(array()))));
$this->reposComplete();