conflict-between-dependents.test 958 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. Test the error output of solver problems for conflicts between two dependents
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "conflicter/pkg", "version": "1.0.0", "conflict": { "victim/pkg": "1.0.0"} },
  10. { "name": "victim/pkg", "version": "1.0.0" }
  11. ]
  12. }
  13. ],
  14. "require": {
  15. "conflicter/pkg": "1.0.0",
  16. "victim/pkg": "1.0.0"
  17. }
  18. }
  19. --RUN--
  20. update
  21. --EXPECT-EXIT-CODE--
  22. 2
  23. --EXPECT-OUTPUT--
  24. Loading composer repositories with package information
  25. Updating dependencies
  26. Your requirements could not be resolved to an installable set of packages.
  27. Problem 1
  28. - Root composer.json requires conflicter/pkg 1.0.0 -> satisfiable by conflicter/pkg[1.0.0].
  29. - conflicter/pkg 1.0.0 conflicts with victim/pkg 1.0.0.
  30. - Root composer.json requires victim/pkg 1.0.0 -> satisfiable by victim/pkg[1.0.0].
  31. --EXPECT--