[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:
parent
31ff3db517
commit
97bc257c69
@ -89,16 +89,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
protected function normalizeIcuVersion($version)
|
protected function normalizeIcuVersion($version)
|
||||||
{
|
{
|
||||||
$versionIds = explode('.', $version);
|
return ((float) $version) * 100;
|
||||||
|
|
||||||
$multi = 1000;
|
|
||||||
$intVersion = 0;
|
|
||||||
foreach ($versionIds as $id) {
|
|
||||||
$intVersion += $id * $multi;
|
|
||||||
$multi = $multi / 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (int) $intVersion;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getIntlExtensionIcuVersion()
|
protected function getIntlExtensionIcuVersion()
|
||||||
|
Reference in New Issue
Block a user