deduplicate-solver-problems.test 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --TEST--
  2. Test the error output of solver problems is deduplicated.
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "package/a", "version": "2.0.0", "require": { "missing/dep": "^1.0" } },
  10. { "name": "package/a", "version": "2.0.1", "require": { "missing/dep": "^1.0" } },
  11. { "name": "package/a", "version": "2.0.2", "require": { "missing/dep": "^1.0" } },
  12. { "name": "package/a", "version": "2.0.3", "require": { "missing/dep": "^1.0" } },
  13. { "name": "package/a", "version": "2.1.0", "require": { "missing/dep": "^1.0" } },
  14. { "name": "package/a", "version": "2.2.0", "require": { "missing/dep": "^1.0" } },
  15. { "name": "package/a", "version": "2.3.1", "require": { "missing/dep": "^1.0" } },
  16. { "name": "package/a", "version": "2.3.2", "require": { "missing/dep": "^1.0" } },
  17. { "name": "package/a", "version": "2.3.3", "require": { "missing/dep": "^1.0" } },
  18. { "name": "package/a", "version": "2.3.4", "require": { "missing/dep": "^1.0" } },
  19. { "name": "package/a", "version": "2.3.5", "require": { "missing/dep": "^1.0" } },
  20. { "name": "package/a", "version": "2.4.0", "require": { "missing/dep": "^1.0" } },
  21. { "name": "package/a", "version": "2.5.0", "require": { "missing/dep": "^1.0" } },
  22. { "name": "package/a", "version": "2.6.0", "require": { "missing/dep": "^1.0" } },
  23. { "name": "missing/dep", "version": "2.0.0" }
  24. ]
  25. }
  26. ],
  27. "require": {
  28. "package/a": "*"
  29. }
  30. }
  31. --RUN--
  32. update
  33. --EXPECT-EXIT-CODE--
  34. 2
  35. --EXPECT-OUTPUT--
  36. Loading composer repositories with package information
  37. Updating dependencies
  38. Your requirements could not be resolved to an installable set of packages.
  39. Problem 1
  40. - package/a[2.0.0, ..., 2.6.0] require missing/dep ^1.0 -> found missing/dep[2.0.0] but it does not match the constraint.
  41. - Root composer.json requires package/a * -> satisfiable by package/a[2.0.0, ..., 2.6.0].
  42. --EXPECT--