1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add test covering edge case of composer repo format, closes #11206

This commit is contained in:
Jordi Boggiano 2022-12-17 23:15:36 +01:00
parent 8969f8062a
commit 3534499c6b
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -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'],
],
]],
],
];
}