1
0
Fork 0

Add test to ensure root requirements do not get expanded by the pool builder

pull/9279/head
Jordi Boggiano 2020-10-13 15:14:20 +02:00
parent 528030716e
commit d702fa0e1a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
--TEST--
Root requirements avoid loading of further versions
--REQUEST--
{
"require": {
"foo/bar": "1.0.0",
"foo/requirer": "*"
}
}
--FIXED--
[
]
--PACKAGE-REPOS--
[
[
{ "name": "foo/bar", "version": "1.0.0" },
{ "name": "foo/bar", "version": "2.0.0" },
{ "name": "foo/bar", "version": "3.0.0" },
{ "name": "foo/requirer", "version": "1.0.0", "require": { "foo/bar": "*" } }
]
]
--EXPECT--
[
"foo/bar-1.0.0.0",
"foo/requirer-1.0.0.0"
]