1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Add support for bumping >=x to >=latest, fixes #11179

This commit is contained in:
Jordi Boggiano 2022-12-17 22:58:35 +01:00
parent 7f9638f65a
commit ef7ba73a6a
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 13 additions and 3 deletions

View file

@ -64,5 +64,7 @@ class VersionBumperTest extends TestCase
yield 'leave patch wildcard alone' => ['2.4.3.*', '2.4.3.2', '2.4.3.*'];
yield 'upgrade tilde to caret when compatible' => ['~2.2', '2.4.3', '^2.4.3'];
yield 'leave patch-only-tilde alone' => ['~2.2.3', '2.2.6', '~2.2.3'];
yield 'upgrade bigger-or-eq to latest' => ['>=3.0', '3.4.5', '>=3.4.5'];
yield 'leave bigger-than untouched' => ['>2.2.3', '2.2.6', '>2.2.3'];
}
}