This commit is contained in:
Fabien Potencier 2012-12-12 17:59:52 +01:00
parent acc10a1518
commit 2da97c1a2f

View File

@ -89,13 +89,13 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
protected function normalizeIcuVersion($version)
{
$versionIds = explode(".", $version);
$versionIds = explode('.', $version);
$multi = 1000;
$intVersion = 0;
foreach ($versionIds as $id) {
$intVersion += $id * $multi;
$multi = $multi/10;
$intVersion += $id * $multi;
$multi = $multi / 10;
}
return (int) $intVersion;