repositories-priorities2.test 508 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Packages found in a higher priority repository take precedence
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "foo/a", "version": "1.0.0" }
  10. ]
  11. },
  12. {
  13. "type": "package",
  14. "package": [
  15. { "name": "foo/a", "version": "1.1.0" }
  16. ]
  17. }
  18. ],
  19. "require": {
  20. "foo/a": "1.*"
  21. }
  22. }
  23. --RUN--
  24. update
  25. --EXPECT--
  26. Installing foo/a (1.0.0)