Add test to ensure root requirements do not get expanded by the pool builder
parent
528030716e
commit
d702fa0e1a
|
@ -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"
|
||||
]
|
Loading…
Reference in New Issue