1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/provider-dev-require-can-sa...

53 lines
1.2 KiB
Plaintext
Raw Normal View History

--TEST--
Test that a requirement can be satisfied by a providing package required in require-dev.
--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--
update --no-dev
--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": {},
"prefer-stable": false,
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
}
--EXPECT--
Installing b/b (1.0.0)