1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/disjunctive-multi-constrain...

25 lines
554 B
Plaintext

--TEST--
Disjunctive multi constraints work
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "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.*" } }
]
}
],
"require": {
"bar/pkg": "1.*",
"foo/pkg": "1.0.*|1.1.*"
}
}
--RUN--
install
--EXPECT--
Installing foo/pkg (1.0.0)
Installing bar/pkg (1.1.0)