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",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-03-12 11:28:46 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-03-12 11:28:46 +00:00
|
|
|
}
|
2020-03-11 16:38:16 +00:00
|
|
|
--EXPECT--
|
2020-03-12 11:28:46 +00:00
|
|
|
Installing b/b (1.0.0)
|