61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
--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--
|
|
<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>
|
|
Loading composer repositories with package information
|
|
Updating dependencies
|
|
Lock file operations: 3 installs, 0 updates, 0 removals
|
|
- Locking b/b (1.0.0)
|
|
- Locking d/d (1.0.0)
|
|
- Locking a/a (1.0.0)
|
|
Writing lock file
|
|
Installing dependencies from lock file (including require-dev)
|
|
Package operations: 3 installs, 0 updates, 0 removals
|
|
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)
|