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:
parent
8969f8062a
commit
3534499c6b
1 changed files with 13 additions and 0 deletions
|
@ -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'],
|
||||
],
|
||||
]],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue