1
0
Fork 0

Add another test verifying that a package may provide an incompatible version of sth that actually exists

pull/9172/head
Nils Adermann 2020-08-28 13:39:34 +02:00
parent 85950f8e9a
commit 140665eadd
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
--TEST--
Test that providers can coexist with a different version of the package they provide
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "foo/provider",
"provide": {
"foo/original": "3.0.0"
},
"version": "1.0.0"
},
{
"name": "foo/original",
"version": "1.0.0"
}
]
}
],
"require": {
"foo/original": "1.0.0",
"foo/provider": "1.0.0"
}
}
--RUN--
update
--EXPECT--
Installing foo/original (1.0.0)
Installing foo/provider (1.0.0)