@@ -2986,6 +2986,11 @@ private function checkSerializer($mode) {
2986
2986
}
2987
2987
2988
2988
public function testDumpRestore () {
2989
+
2990
+ if (version_compare ($ this ->version , "2.5.0 " , "lt " )) {
2991
+ return ;
2992
+ }
2993
+
2989
2994
$ this ->redis ->del ('foo ' );
2990
2995
$ this ->redis ->del ('bar ' );
2991
2996
@@ -3046,6 +3051,11 @@ private function array_diff_recursive($aArray1, $aArray2) {
3046
3051
}
3047
3052
3048
3053
public function testScript () {
3054
+
3055
+ if (version_compare ($ this ->version , "2.5.0 " , "lt " )) {
3056
+ return ;
3057
+ }
3058
+
3049
3059
// Flush any scripts we have
3050
3060
$ this ->assertTrue ($ this ->redis ->script ('flush ' ));
3051
3061
@@ -3073,6 +3083,11 @@ public function testScript() {
3073
3083
}
3074
3084
3075
3085
public function testEval () {
3086
+
3087
+ if (version_compare ($ this ->version , "2.5.0 " , "lt " )) {
3088
+ return ;
3089
+ }
3090
+
3076
3091
// Basic single line response tests
3077
3092
$ this ->assertTrue (1 == $ this ->redis ->eval ('return 1 ' ));
3078
3093
$ this ->assertTrue (1.55 == $ this ->redis ->eval ("return '1.55' " ));
@@ -3186,6 +3201,11 @@ public function testEval() {
3186
3201
}
3187
3202
3188
3203
public function testEvalSHA () {
3204
+
3205
+ if (version_compare ($ this ->version , "2.5.0 " , "lt " )) {
3206
+ return ;
3207
+ }
3208
+
3189
3209
// Flush any loaded scripts
3190
3210
$ this ->redis ->script ('flush ' );
3191
3211
@@ -3279,6 +3299,11 @@ public function testReconnectSelect() {
3279
3299
}
3280
3300
3281
3301
public function testTime () {
3302
+
3303
+ if (version_compare ($ this ->version , "2.5.0 " , "lt " )) {
3304
+ return ;
3305
+ }
3306
+
3282
3307
$ time_arr = $ this ->redis ->time ();
3283
3308
$ this ->assertTrue (is_array ($ time_arr ) && count ($ time_arr ) == 2 &&
3284
3309
strval (intval ($ time_arr [0 ])) === strval ($ time_arr [0 ]) &&
0 commit comments