Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After update and install commands display how many packages want funding
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
tests/Composer/Test/Fixtures/installer/install-funding-notice.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--TEST-- | ||
Installs a simple package with exact match requirement | ||
--COMPOSER-- | ||
{ | ||
"repositories": [ | ||
{ | ||
"type": "package", | ||
"package": [ | ||
{ | ||
"name": "a/a", | ||
"version": "1.0.0", | ||
"funding": [{ "type": "example", "url": "http://example.org/fund" }], | ||
"require": { | ||
"d/d": "^1.0" | ||
} | ||
}, | ||
{ | ||
"name": "b/b", | ||
"version": "1.0.0", | ||
"funding": [{ "type": "example", "url": "http://example.org/fund" }] | ||
}, | ||
{ | ||
"name": "c/c", | ||
"version": "1.0.0", | ||
"funding": [{ "type": "example", "url": "http://example.org/fund" }] | ||
}, | ||
{ | ||
"name": "d/d", | ||
"version": "1.0.0", | ||
"require": { | ||
"b/b": "^1.0" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"require": { | ||
"a/a": "1.0.0" | ||
} | ||
} | ||
--RUN-- | ||
install | ||
--EXPECT-OUTPUT-- | ||
Loading composer repositories with package information | ||
Updating dependencies (including require-dev) | ||
Package operations: 3 installs, 0 updates, 0 removals | ||
Writing lock file | ||
Generating autoload files | ||
2 packages you are using are looking for funding. | ||
Use the composer fund command to find out more! | ||
--EXPECT-- | ||
Installing b/b (1.0.0) | ||
Installing d/d (1.0.0) | ||
Installing a/a (1.0.0) |