install-aliased-alias.test 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --TEST--
  2. Installing double aliased package
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/a", "version": "dev-master",
  11. "dist": { "type": "file", "url": "" },
  12. "require": {
  13. "b/b": "dev-master"
  14. }
  15. },
  16. {
  17. "name": "b/b", "version": "dev-foo",
  18. "extra": { "branch-alias": { "dev-foo": "1.0.x-dev" } },
  19. "dist": { "type": "file", "url": "" }
  20. }
  21. ]
  22. }
  23. ],
  24. "require": {
  25. "a/a": "dev-master",
  26. "b/b": "1.0.x-dev as dev-master"
  27. },
  28. "minimum-stability": "dev"
  29. }
  30. --RUN--
  31. install
  32. --EXPECT--
  33. Installing b/b (dev-foo)
  34. Marking b/b (dev-master) as installed, alias of b/b (dev-foo)
  35. Marking b/b (1.0.x-dev) as installed, alias of b/b (dev-foo)
  36. Installing a/a (dev-master)
  37. Marking a/a (9999999-dev) as installed, alias of a/a (dev-master)