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

Add additional test for beta without dash separator support, fixes #3331

This commit is contained in:
Jordi Boggiano 2014-10-06 12:41:54 +01:00
parent 6c0afd3fc0
commit 95d49ce638

View file

@ -89,6 +89,7 @@ class VersionParserTest extends \PHPUnit_Framework_TestCase
'forces w.x.y.z' => array('1.0-dev', '1.0.0.0-dev'),
'forces w.x.y.z/2' => array('0', '0.0.0.0'),
'parses long' => array('10.4.13-beta', '10.4.13.0-beta'),
'parses long/2' => array('10.4.13beta2', '10.4.13.0-beta2'),
'expand shorthand' => array('10.4.13-b', '10.4.13.0-beta'),
'expand shorthand2' => array('10.4.13-b5', '10.4.13.0-beta5'),
'strips leading v' => array('v1.0.0', '1.0.0.0'),