From 140665eadd1f7a65918702e17c8c18247b2cc5dc Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Fri, 28 Aug 2020 13:39:34 +0200 Subject: [PATCH] Add another test verifying that a package may provide an incompatible version of sth that actually exists --- ...oexist-with-other-version-of-provided.test | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/Composer/Test/Fixtures/installer/provider-can-coexist-with-other-version-of-provided.test diff --git a/tests/Composer/Test/Fixtures/installer/provider-can-coexist-with-other-version-of-provided.test b/tests/Composer/Test/Fixtures/installer/provider-can-coexist-with-other-version-of-provided.test new file mode 100644 index 000000000..fc7e2e257 --- /dev/null +++ b/tests/Composer/Test/Fixtures/installer/provider-can-coexist-with-other-version-of-provided.test @@ -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)