[Locale] Rolled back normalizeIcuVersion() method in unit tests.

This makes it consistent with 2.0 and 2.1.

We just need to check if version is 4.4 or 4.8 and we do not need to know if it is 4.8.0 or 4.8.1.1 (at least for now there are no big differences between minor ICU versions).
This commit is contained in:
Jakub Zalas 2013-01-05 11:41:28 +01:00
parent 31ff3db517
commit 97bc257c69

View File

@ -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()