1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/unbounded-conflict-does-not...

31 lines
790 B
Plaintext

--TEST--
Test that a conflict against >=5 does not include the default branch if it is a numeric branch.
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "conflicter/pkg", "version": "1.0.0", "conflict": { "victim/pkg": ">=5", "victim/pkg2": ">=5" } },
{ "name": "victim/pkg", "version": "3.x-dev", "default-branch": true },
{ "name": "victim/pkg2", "version": "dev-foo" }
]
}
],
"require": {
"conflicter/pkg": "1.0.0",
"victim/pkg": "*",
"victim/pkg2": "*"
},
"minimum-stability": "dev"
}
--RUN--
update
--EXPECT--
Installing conflicter/pkg (1.0.0)
Installing victim/pkg (3.x-dev)
Installing victim/pkg2 (dev-foo)