disjunctive-multi-constraints.test 554 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Disjunctive multi constraints work
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "foo/pkg", "version": "1.1.0" },
  10. { "name": "foo/pkg", "version": "1.0.0" },
  11. { "name": "bar/pkg", "version": "1.1.0", "require": { "foo/pkg": "1.0.*" } }
  12. ]
  13. }
  14. ],
  15. "require": {
  16. "bar/pkg": "1.*",
  17. "foo/pkg": "1.0.*|1.1.*"
  18. }
  19. }
  20. --RUN--
  21. install
  22. --EXPECT--
  23. Installing foo/pkg (1.0.0)
  24. Installing bar/pkg (1.1.0)