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

40 lines
1.2 KiB
Plaintext
Raw Normal View History

--TEST--
2020-11-26 12:59:35 +00:00
Test that a conflict against >=5 includes the default branch if it has no branch alias defined (and then uses the default 9999999-dev alias).
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "conflicter/pkg", "version": "1.0.0", "conflict": { "victim/pkg": ">=5", "victim/pkg2": ">=5" } },
2020-06-19 13:35:09 +00:00
{ "name": "victim/pkg", "version": "dev-master", "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-EXIT-CODE--
2
--EXPECT-OUTPUT--
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires conflicter/pkg 1.0.0 -> satisfiable by conflicter/pkg[1.0.0].
- Root composer.json requires victim/pkg * -> satisfiable by victim/pkg[dev-master].
2024-09-17 12:13:58 +00:00
- conflicter/pkg 1.0.0 conflicts with victim/pkg dev-master.
--EXPECT--