circular-dependency.test 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --TEST--
  2. Circular dependencies are possible between packages
  3. --COMPOSER--
  4. {
  5. "name": "root/package",
  6. "type": "library",
  7. "minimum-stability": "dev",
  8. "version": "dev-master",
  9. "require": {
  10. "required/package": "1.0"
  11. },
  12. "replace": {
  13. "provided/dependency": "self.version"
  14. },
  15. "extra": {
  16. "branch-alias": {
  17. "dev-master": "2.0-dev"
  18. }
  19. },
  20. "repositories": [
  21. {
  22. "type": "package",
  23. "package": [
  24. {
  25. "name": "required/package",
  26. "version": "1.0",
  27. "type": "library",
  28. "source": { "reference": "some.branch", "type": "git", "url": "" },
  29. "require": {
  30. "provided/dependency": "2.*"
  31. }
  32. }
  33. ]
  34. },
  35. {
  36. "type": "package",
  37. "package": [
  38. {
  39. "name": "root/package",
  40. "version": "2.0-dev",
  41. "type": "library",
  42. "source": { "reference": "other.branch", "type": "git", "url": "" },
  43. "replace": {
  44. "provided/dependency": "self.version"
  45. }
  46. }
  47. ]
  48. }
  49. ]
  50. }
  51. --RUN--
  52. update
  53. --EXPECT--
  54. Installing required/package (1.0)