diff --git a/tests/Composer/Test/Repository/ComposerRepositoryTest.php b/tests/Composer/Test/Repository/ComposerRepositoryTest.php index a9acd9749..19192ffda 100644 --- a/tests/Composer/Test/Repository/ComposerRepositoryTest.php +++ b/tests/Composer/Test/Repository/ComposerRepositoryTest.php @@ -89,6 +89,19 @@ class ComposerRepositoryTest extends TestCase ], ]], ], + // New repository format but without versions as keys should also be supported + [ + [ + ['name' => 'bar/foo', 'version' => '3.14'], + ['name' => 'bar/foo', 'version' => '3.145'], + ], + ['packages' => [ + 'bar/foo' => [ + ['name' => 'bar/foo', 'version' => '3.14'], + ['name' => 'bar/foo', 'version' => '3.145'], + ], + ]], + ], ]; }