install-prefers-repos-over-package-versions.test 672 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Install prefers higher priority repositories over higher priority package versions
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/a", "version": "1.0.0" }
  10. ]
  11. },
  12. {
  13. "type": "package",
  14. "package": [
  15. { "name": "a/a", "version": "1.1.0" },
  16. { "name": "b/b", "version": "1.1.0" },
  17. { "name": "b/b", "version": "1.0.0" }
  18. ]
  19. }
  20. ],
  21. "require": {
  22. "a/a": "*",
  23. "b/b": "*"
  24. }
  25. }
  26. --RUN--
  27. install
  28. --EXPECT--
  29. Installing a/a (1.0.0)
  30. Installing b/b (1.1.0)