From b639005f2975378b72dc915b857b84f36a2985df Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 21 Feb 2014 16:26:53 +0100 Subject: [PATCH] Added a failing test for #2626 --- .../Fixtures/installer/replace-alias.test | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/Composer/Test/Fixtures/installer/replace-alias.test diff --git a/tests/Composer/Test/Fixtures/installer/replace-alias.test b/tests/Composer/Test/Fixtures/installer/replace-alias.test new file mode 100644 index 000000000..c3660cd6b --- /dev/null +++ b/tests/Composer/Test/Fixtures/installer/replace-alias.test @@ -0,0 +1,24 @@ +--TEST-- +Ensure a replacer package deals with branch aliases +--COMPOSER-- +{ + "repositories": [ + { + "type": "package", + "package": [ + { "name": "a/a", "version": "dev-master", "replace": {"c/c": "self.version" }, "extra": { "branch-alias": {"dev-master": "1.0.x-dev"} } }, + { "name": "b/b", "version": "1.0.0", "require": {"c/c": "1.*"} }, + { "name": "c/c", "version": "dev-master", "extra": { "branch-alias": {"dev-master": "1.0.x-dev"} } } + ] + } + ], + "require": { + "a/a": "dev-master", + "b/b": "1.*" + } +} +--RUN-- +install +--EXPECT-- +Installing a/a (dev-master) +Installing b/b (1.0.0)