install-funding-notice.test 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --TEST--
  2. Installs a simple package with exact match requirement
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/a",
  11. "version": "1.0.0",
  12. "funding": [{ "type": "example", "url": "http://example.org/fund" }],
  13. "require": {
  14. "d/d": "^1.0"
  15. }
  16. },
  17. {
  18. "name": "b/b",
  19. "version": "1.0.0",
  20. "funding": [{ "type": "example", "url": "http://example.org/fund" }]
  21. },
  22. {
  23. "name": "c/c",
  24. "version": "1.0.0",
  25. "funding": [{ "type": "example", "url": "http://example.org/fund" }]
  26. },
  27. {
  28. "name": "d/d",
  29. "version": "1.0.0",
  30. "require": {
  31. "b/b": "^1.0"
  32. }
  33. }
  34. ]
  35. }
  36. ],
  37. "require": {
  38. "a/a": "1.0.0"
  39. }
  40. }
  41. --RUN--
  42. install
  43. --EXPECT-OUTPUT--
  44. <warning>No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.</warning>
  45. Loading composer repositories with package information
  46. Updating dependencies
  47. Lock file operations: 3 installs, 0 updates, 0 removals
  48. - Locking a/a (1.0.0)
  49. - Locking b/b (1.0.0)
  50. - Locking d/d (1.0.0)
  51. Writing lock file
  52. Installing dependencies from lock file (including require-dev)
  53. Package operations: 3 installs, 0 updates, 0 removals
  54. Generating autoload files
  55. 2 packages you are using are looking for funding.
  56. Use the `composer fund` command to find out more!
  57. --EXPECT--
  58. Installing b/b (1.0.0)
  59. Installing d/d (1.0.0)
  60. Installing a/a (1.0.0)