Skip to content

Instantly share code, notes, and snippets.

@naderman
Created July 1, 2012 15:56
Show Gist options
  • Save naderman/3028804 to your computer and use it in GitHub Desktop.
Save naderman/3028804 to your computer and use it in GitHub Desktop.
--TEST--
Update aliased package to non-aliased version
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "master", "type": "git", "url": "" }
}
]
}
],
"require": {
"a/a": "1.*"
}
}
--LOCK--
{
"packages": [
{ "package": "a/a", "version": "dev-master", "source-reference": "1234" },
{ "package": "a/a", "version": "1.0.x-dev", "alias-pretty-version": "1.0.x-dev", "alias-version": "1.0.9999999.9999999-dev" }
],
"packages-dev": null,
"aliases": [],
"minimum-stability": "stable",
"stability-flags": []
}
--INSTALLED--
[
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "master", "type": "git", "url": "" }
}
]
--RUN--
update
--EXPECT--
Updating a/a (dev-master master) to a/a (dev-master master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment