replace-range-require-single-version.test 809 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Verify replacing an unbound range and requiring a single version works as well as vice versa.
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/a", "version": "1.0.1", "replace": {"c/c": ">2.0" }},
  10. { "name": "b/b", "version": "1.0.2", "require": {"c/c": "2.1.2" }},
  11. { "name": "d/d", "version": "1.0.3", "replace": {"f/f": "2.1.2" }},
  12. { "name": "e/e", "version": "1.0.4", "require": {"f/f": ">2.0" }}
  13. ]
  14. }
  15. ],
  16. "require": {
  17. "a/a": "1.0.1",
  18. "b/b": "1.0.2",
  19. "d/d": "1.0.3",
  20. "e/e": "1.0.4"
  21. }
  22. }
  23. --RUN--
  24. update
  25. --EXPECT--
  26. Installing a/a (1.0.1)
  27. Installing b/b (1.0.2)
  28. Installing d/d (1.0.3)
  29. Installing e/e (1.0.4)