1
0
Fork 0

And here's the key test :)

pull/8850/head
Yanick Witschi 2020-04-30 17:22:15 +02:00 committed by Jordi Boggiano
parent b87fc5bbfd
commit 28f82032cd
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
--TEST--
Test irrelevant package versions are not loaded
--REQUEST--
{
"require": {
"root/req": "*"
}
}
--FIXED--
[
]
--PACKAGES--
[
{"name": "root/req", "version": "1.0.0", "require": {"dep/dep": "2.*"}},
{"name": "dep/dep", "version": "2.3.4", "require": {"dep/dep2": "2.*"}},
{"name": "dep/dep", "version": "2.3.5"},
{"name": "dep/dep", "version": "3.0.0"},
{"name": "dep/dep", "version": "4.0.0"},
{"name": "dep/dep2", "version": "2.3.4", "require": {"dep/dep": "3.*"}}
]
--EXPECT--
[
"root/req-1.0.0.0",
"dep/dep-2.3.4.0",
"dep/dep-2.3.5.0",
"dep/dep2-2.3.4.0",
"dep/dep-2.3.4.0",
"dep/dep-2.3.5.0",
"dep/dep-3.0.0.0"
]