diff --git a/src/Symfony/Component/Locale/Tests/TestCase.php b/src/Symfony/Component/Locale/Tests/TestCase.php index aa772f25e3..b6483285a2 100644 --- a/src/Symfony/Component/Locale/Tests/TestCase.php +++ b/src/Symfony/Component/Locale/Tests/TestCase.php @@ -89,16 +89,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase protected function normalizeIcuVersion($version) { - $versionIds = explode('.', $version); - - $multi = 1000; - $intVersion = 0; - foreach ($versionIds as $id) { - $intVersion += $id * $multi; - $multi = $multi / 10; - } - - return (int) $intVersion; + return ((float) $version) * 100; } protected function getIntlExtensionIcuVersion()