@@ -39,11 +39,11 @@ public static function requireIntl(\PhpUnit_Framework_TestCase $testCase)
39
39
// * the intl extension is loaded with version Intl::getIcuStubVersion()
40
40
// * the intl extension is not loaded
41
41
42
- if (IcuVersion::compare (Intl::getIcuVersion (), Intl::getIcuStubVersion (), '!= ' , $ precision = 1 )) {
42
+ if (IcuVersion::compare (Intl::getIcuVersion (), Intl::getIcuStubVersion (), '!= ' , 1 )) {
43
43
$ testCase ->markTestSkipped ('Please change ICU version to ' . Intl::getIcuStubVersion ());
44
44
}
45
45
46
- if (IcuVersion::compare (Intl::getIcuDataVersion (), Intl::getIcuStubVersion (), '!= ' , $ precision = 1 )) {
46
+ if (IcuVersion::compare (Intl::getIcuDataVersion (), Intl::getIcuStubVersion (), '!= ' , 1 )) {
47
47
$ testCase ->markTestSkipped ('Please change the Icu component to version 1.0.x or 1. ' . IcuVersion::normalize (Intl::getIcuStubVersion (), 1 ) . '.x ' );
48
48
}
49
49
@@ -75,12 +75,12 @@ public static function requireFullIntl(\PhpUnit_Framework_TestCase $testCase)
75
75
}
76
76
77
77
// ... 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 )) {
79
79
$ testCase ->markTestSkipped ('Please change ICU version to ' . Intl::getIcuStubVersion ());
80
80
}
81
81
82
82
// ... 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 )) {
84
84
$ testCase ->markTestSkipped ('Please change the Icu component to version 1.0.x or 1. ' . IcuVersion::normalize (Intl::getIcuStubVersion (), 1 ) . '.x ' );
85
85
}
86
86
0 commit comments