From 95d49ce638ba0884a9f57de609184c9cca6e778c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 6 Oct 2014 12:41:54 +0100 Subject: [PATCH] Add additional test for beta without dash separator support, fixes #3331 --- tests/Composer/Test/Package/Version/VersionParserTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Composer/Test/Package/Version/VersionParserTest.php b/tests/Composer/Test/Package/Version/VersionParserTest.php index f54371d65..25c2b9898 100644 --- a/tests/Composer/Test/Package/Version/VersionParserTest.php +++ b/tests/Composer/Test/Package/Version/VersionParserTest.php @@ -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'),