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

Introduce constants for Composer\Package\Link types

This commit is contained in:
Michael Telgmann 2020-09-15 10:44:28 +02:00
parent 4f4c299015
commit a4509d28e7
No known key found for this signature in database
GPG key ID: 58B3260258E8D84B
16 changed files with 158 additions and 126 deletions

View file

@ -438,7 +438,7 @@ class AutoloadGeneratorTest extends TestCase
$b->setAutoload(array('psr-4' => array('B\\' => 'src/')));
$b->setReplaces(
array(new Link('b/b', 'b/c', new Constraint('==', '1.0'), 'replaces'))
array(new Link('b/b', 'b/c', new Constraint('==', '1.0'), Link::TYPE_REPLACE))
);
$this->repository->expects($this->once())