diff --git a/src/Symfony/Component/Locale/Tests/TestCase.php b/src/Symfony/Component/Locale/Tests/TestCase.php index aa772f25e31c..b6483285a25f 100644 --- a/src/Symfony/Component/Locale/Tests/TestCase.php +++ b/src/Symfony/Component/Locale/Tests/TestCase.php @@ -89,16 +89,7 @@ protected function isLowerThanIcuVersion($version) 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()