diff --git a/tests/Composer/Test/DependencyResolver/Fixtures/poolbuilder/root-requirements-avoid-loading-further-versions.test b/tests/Composer/Test/DependencyResolver/Fixtures/poolbuilder/root-requirements-avoid-loading-further-versions.test new file mode 100644 index 000000000..08f588044 --- /dev/null +++ b/tests/Composer/Test/DependencyResolver/Fixtures/poolbuilder/root-requirements-avoid-loading-further-versions.test @@ -0,0 +1,30 @@ +--TEST-- +Root requirements avoid loading of further versions + +--REQUEST-- +{ + "require": { + "foo/bar": "1.0.0", + "foo/requirer": "*" + } +} + +--FIXED-- +[ +] + +--PACKAGE-REPOS-- +[ + [ + { "name": "foo/bar", "version": "1.0.0" }, + { "name": "foo/bar", "version": "2.0.0" }, + { "name": "foo/bar", "version": "3.0.0" }, + { "name": "foo/requirer", "version": "1.0.0", "require": { "foo/bar": "*" } } + ] +] + +--EXPECT-- +[ + "foo/bar-1.0.0.0", + "foo/requirer-1.0.0.0" +]