2020-01-30 11:27:24 +00:00
|
|
|
--TEST--
|
2020-01-30 20:46:58 +00:00
|
|
|
Providers of a replaced name should be installable
|
2020-01-30 11:27:24 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "provider/pkg",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"provide": { "third/pkg": "2.*" }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "replacer/pkg",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"replace": { "third/pkg": "2.*" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"provider/pkg": "*",
|
|
|
|
"replacer/pkg": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
|
|
|
|
--EXPECT--
|
2020-01-30 20:46:58 +00:00
|
|
|
Installing provider/pkg (1.0.0)
|
|
|
|
Installing replacer/pkg (1.0.0)
|