alias-with-reference.test 871 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Aliases of referenced packages work
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/aliased", "version": "dev-master",
  11. "source": { "reference": "orig", "type": "git", "url": "" }
  12. },
  13. {
  14. "name": "b/requirer", "version": "1.0.0",
  15. "require": { "a/aliased": "1.0.0" },
  16. "source": { "reference": "1.0.0", "type": "git", "url": "" }
  17. }
  18. ]
  19. }
  20. ],
  21. "require": {
  22. "a/aliased": "dev-master#abcd as 1.0.0",
  23. "b/requirer": "*"
  24. }
  25. }
  26. --RUN--
  27. install
  28. --EXPECT--
  29. Installing a/aliased (dev-master abcd)
  30. Marking a/aliased (1.0.0) as installed, alias of a/aliased (dev-master abcd)
  31. Installing b/requirer (1.0.0)