Merge remote-tracking branch 'Ocramius/regression/circular-dependency-and-alias-aliases'
commit
5cddc9ebc0
|
@ -0,0 +1,58 @@
|
|||
--TEST--
|
||||
Circular dependencies are possible between packages
|
||||
--COMPOSER--
|
||||
{
|
||||
"name": "root/package",
|
||||
"type": "library",
|
||||
"minimum-stability": "dev",
|
||||
"require": {
|
||||
"required/package": "1.0"
|
||||
},
|
||||
"replace": {
|
||||
"provided/dependency": "self.version"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.0-dev"
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "package",
|
||||
"package": [
|
||||
{
|
||||
"name": "required/package",
|
||||
"version": "1.0",
|
||||
"type": "library",
|
||||
"source": { "reference": "some.branch", "type": "git", "url": "" },
|
||||
"require": {
|
||||
"provided/dependency": "2.*"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": [
|
||||
{
|
||||
"name": "root/package",
|
||||
"version": "2.0-dev",
|
||||
"type": "library",
|
||||
"source": { "reference": "other.branch", "type": "git", "url": "" },
|
||||
"replace": {
|
||||
"provided/dependency": "self.version"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
--INSTALLED--
|
||||
[
|
||||
{ "name": "root/package", "version": "2.0-dev" }
|
||||
]
|
||||
--RUN--
|
||||
install
|
||||
--EXPECT--
|
||||
Installing required/package (1.0)
|
||||
Uninstalling root/package (2.0-dev)
|
Loading…
Reference in New Issue