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

58 lines
1.6 KiB
Plaintext

--TEST--
Test the error output of solver problems with dev-master aliases.
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{"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",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"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
- 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].
- 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].
- b/b dev-master requires d/d 2.0.0 -> satisfiable by d/d[2.0.0].
- Conclusion: install b/b dev-master, learned rules:
- Root composer.json requires b/b *@dev -> satisfiable by b/b[dev-master].
- Root composer.json requires a/a *@dev -> satisfiable by a/a[dev-master].
--EXPECT--