@@ -39,11 +39,11 @@ public static function requireIntl(\PhpUnit_Framework_TestCase $testCase)
3939 // * the intl extension is loaded with version Intl::getIcuStubVersion()
4040 // * the intl extension is not loaded
4141
42- if (IcuVersion::compare (Intl::getIcuVersion (), Intl::getIcuStubVersion (), '!= ' , $ precision = 1 )) {
42+ if (IcuVersion::compare (Intl::getIcuVersion (), Intl::getIcuStubVersion (), '!= ' , 1 )) {
4343 $ testCase ->markTestSkipped ('Please change ICU version to ' . Intl::getIcuStubVersion ());
4444 }
4545
46- if (IcuVersion::compare (Intl::getIcuDataVersion (), Intl::getIcuStubVersion (), '!= ' , $ precision = 1 )) {
46+ if (IcuVersion::compare (Intl::getIcuDataVersion (), Intl::getIcuStubVersion (), '!= ' , 1 )) {
4747 $ testCase ->markTestSkipped ('Please change the Icu component to version 1.0.x or 1. ' . IcuVersion::normalize (Intl::getIcuStubVersion (), 1 ) . '.x ' );
4848 }
4949
@@ -75,12 +75,12 @@ public static function requireFullIntl(\PhpUnit_Framework_TestCase $testCase)
7575 }
7676
7777 // ... and only if the version is *one specific version* ...
78- if (IcuVersion::compare (Intl::getIcuVersion (), Intl::getIcuStubVersion (), '!= ' , $ precision = 1 )) {
78+ if (IcuVersion::compare (Intl::getIcuVersion (), Intl::getIcuStubVersion (), '!= ' , 1 )) {
7979 $ testCase ->markTestSkipped ('Please change ICU version to ' . Intl::getIcuStubVersion ());
8080 }
8181
8282 // ... and only if the data in the Icu component matches that version.
83- if (IcuVersion::compare (Intl::getIcuDataVersion (), Intl::getIcuStubVersion (), '!= ' , $ precision = 1 )) {
83+ if (IcuVersion::compare (Intl::getIcuDataVersion (), Intl::getIcuStubVersion (), '!= ' , 1 )) {
8484 $ testCase ->markTestSkipped ('Please change the Icu component to version 1.0.x or 1. ' . IcuVersion::normalize (Intl::getIcuStubVersion (), 1 ) . '.x ' );
8585 }
8686
0 commit comments