alias-solver-problems.test 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --TEST--
  2. Test the error output of solver problems with dev-master aliases.
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {"name": "a/a", "version": "dev-master", "require": {"d/d": "1.0.0"}},
  10. {"name": "b/b", "version": "dev-master", "require": {"d/d": "2.0.0"}},
  11. {"name": "d/d", "version": "1.0.0"},
  12. {"name": "d/d", "version": "2.0.0"}
  13. ]
  14. }
  15. ],
  16. "require": {
  17. "a/a": "*@dev",
  18. "b/b": "*@dev"
  19. }
  20. }
  21. --LOCK--
  22. {
  23. "packages": [
  24. ],
  25. "packages-dev": [],
  26. "aliases": [],
  27. "minimum-stability": "dev",
  28. "stability-flags": [],
  29. "prefer-stable": false,
  30. "prefer-lowest": false,
  31. "platform": [],
  32. "platform-dev": []
  33. }
  34. --RUN--
  35. update a/a b/b
  36. --EXPECT-EXIT-CODE--
  37. 2
  38. --EXPECT-OUTPUT--
  39. Loading composer repositories with package information
  40. Updating dependencies
  41. Your requirements could not be resolved to an installable set of packages.
  42. Problem 1
  43. - Root composer.json requires b/b *@dev -> satisfiable by b/b[dev-master].
  44. - a/a dev-master requires d/d 1.0.0 -> satisfiable by d/d[1.0.0].
  45. - 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].
  46. - Conclusion: install d/d 2.0.0, learned rules:
  47. - Root composer.json requires b/b *@dev -> satisfiable by b/b[dev-master].
  48. - b/b dev-master requires d/d 2.0.0 -> satisfiable by d/d[2.0.0].
  49. - Root composer.json requires a/a *@dev -> satisfiable by a/a[dev-master].
  50. --EXPECT--