1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/alias-solver-problems.test

56 lines
1.5 KiB
Plaintext
Raw Normal View History

--TEST--
Test the error output of solver problems with dev-master aliases.
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
2020-06-19 13:35:09 +00:00
{"name": "a/a", "version": "dev-master", "require": {"d/d": "1.0.0"}, "default-branch": true},
{"name": "b/b", "version": "dev-master", "require": {"d/d": "2.0.0"}, "default-branch": true},
{"name": "d/d", "version": "1.0.0"},
{"name": "d/d", "version": "2.0.0"}
]
}
],
"require": {
"a/a": "*@dev",
"b/b": "*@dev"
}
}
--LOCK--
{
"packages": [
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
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": {}
}
--RUN--
update a/a b/b
--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
2024-09-17 12:13:58 +00:00
- Root composer.json requires a/a *@dev -> satisfiable by a/a[dev-master].
- Root composer.json requires b/b *@dev -> satisfiable by b/b[dev-master].
- a/a dev-master requires d/d 1.0.0 -> satisfiable by d/d[1.0.0].
- b/b dev-master requires d/d 2.0.0 -> satisfiable by d/d[2.0.0].
- Conclusion: install b/b dev-master (conflict analysis result)
2024-09-17 12:13:58 +00:00
- You can only install one version of a package, so only one of these can be installed: d/d[1.0.0, 2.0.0].
--EXPECT--