1
0
Fork 0

Add test for replace

pull/4001/head
Jordi Boggiano 2015-05-05 11:04:05 +01:00
parent 42a9561ae2
commit 0e0cb62fb8
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--TEST--
Install package and it's replacer skips the original
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "ext-foo", "version": "1.0.0" },
{ "name": "ext-foo/fork", "version": "0.5.0", "replace": { "ext-foo": "1.0.*" } }
]
}
],
"require": {
"ext-foo": "1.0.0",
"ext-foo/fork": "0.5.*"
}
}
--RUN--
install
--EXPECT--
Installing ext-foo/fork (0.5.0)