provider-conflicts2.test 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --TEST--
  2. Test that names provided by two dependents cause a conflict
  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-EXIT-CODE--
  30. 2
  31. --EXPECT-OUTPUT--
  32. Loading composer repositories with package information
  33. Updating dependencies
  34. Your requirements could not be resolved to an installable set of packages.
  35. Problem 1
  36. - Root composer.json requires provider/pkg * -> satisfiable by provider/pkg[1.0.0].
  37. - Only one of these can be installed: replacer/pkg 1.0.0, provider/pkg 1.0.0.
  38. - Root composer.json requires replacer/pkg * -> satisfiable by replacer/pkg[1.0.0].
  39. --EXPECT--