1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Fix semver usage

This commit is contained in:
Jordi Boggiano 2020-04-21 15:13:01 +02:00
parent af18c2bd7d
commit afa18f2092
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -25,6 +25,7 @@ use Composer\Repository\InstalledArrayRepository;
use Composer\Repository\RepositorySet;
use Composer\Test\TestCase;
use Composer\Semver\Constraint\MultiConstraint;
use Composer\Semver\Constraint\EmptyConstraint;
class SolverTest extends TestCase
{
@ -378,7 +379,7 @@ class SolverTest extends TestCase
{
$this->repoLocked->addPackage($packageA = $this->getPackage('A', '1.0'));
$this->repo->addPackage($packageB = $this->getPackage('B', '1.0'));
$packageB->setReplaces(array('a' => new Link('B', 'A', new MultiConstraint(array()))));
$packageB->setReplaces(array('a' => new Link('B', 'A', new EmptyConstraint())));
$this->reposComplete();