2013-04-27 13:20:35 +00:00
|
|
|
--TEST--
|
|
|
|
Disjunctive multi constraints work
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2020-03-11 08:34:40 +00:00
|
|
|
{ "name": "foo/pkg", "version": "1.1.0" },
|
|
|
|
{ "name": "foo/pkg", "version": "1.0.0" },
|
|
|
|
{ "name": "bar/pkg", "version": "1.1.0", "require": { "foo/pkg": "1.0.*" } }
|
2013-04-27 13:20:35 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2020-03-11 08:34:40 +00:00
|
|
|
"bar/pkg": "1.*",
|
|
|
|
"foo/pkg": "1.0.*|1.1.*"
|
2013-04-27 13:20:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
install
|
|
|
|
--EXPECT--
|
2020-03-11 08:34:40 +00:00
|
|
|
Installing foo/pkg (1.0.0)
|
|
|
|
Installing bar/pkg (1.1.0)
|