provider-conflicts2.test 717 B

123456789101112131415161718192021222324252627282930313233
  1. --TEST--
  2. Providers of a replaced name should be installable
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "provider/pkg",
  11. "version": "1.0.0",
  12. "provide": { "third/pkg": "2.*" }
  13. },
  14. {
  15. "name": "replacer/pkg",
  16. "version": "1.0.0",
  17. "replace": { "third/pkg": "2.*" }
  18. }
  19. ]
  20. }
  21. ],
  22. "require": {
  23. "provider/pkg": "*",
  24. "replacer/pkg": "*"
  25. }
  26. }
  27. --RUN--
  28. update
  29. --EXPECT--
  30. Installing provider/pkg (1.0.0)
  31. Installing replacer/pkg (1.0.0)