2020-03-11 16:38:16 +00:00
|
|
|
--TEST--
|
2020-03-12 12:17:04 +00:00
|
|
|
Test that a requirement can be satisfied by a providing package required in require-dev.
|
2020-03-11 16:38:16 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{"name": "provider/requirer", "version": "1.0.0", "type": "metapackage", "require": {"b/b": "1.0.0"}},
|
|
|
|
{"name": "b/b", "version": "1.0.0", "type": "metapackage", "provide": {"provided/pkg": "1.0.0"}}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"provided/pkg": "1.0.0"
|
|
|
|
},
|
|
|
|
"require-dev": {
|
|
|
|
"provider/requirer": "1.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--RUN--
|
2020-03-12 11:28:46 +00:00
|
|
|
update --no-dev
|
2020-03-11 16:38:16 +00:00
|
|
|
|
2020-03-12 11:28:46 +00:00
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "b/b",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"type": "metapackage",
|
|
|
|
"provide": {"provided/pkg": "1.0.0"}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"packages-dev": [
|
|
|
|
{
|
|
|
|
"name": "provider/requirer",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"type": "metapackage",
|
|
|
|
"require": {"b/b": "1.0.0"}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": [],
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2020-03-11 16:38:16 +00:00
|
|
|
--EXPECT--
|
2020-03-12 11:28:46 +00:00
|
|
|
Installing b/b (1.0.0)
|