@@ -1860,7 +1860,7 @@ public function testZX() {
1860
1860
$ this ->redis ->delete ('z ' );
1861
1861
$ this ->redis ->zadd ('z ' , 1 , 'one ' );
1862
1862
$ this ->redis ->zadd ('z ' , 2 , 'two ' );
1863
- $ this ->redis ->zadd ('z ' , 5 , 'five ' );
1863
+ $ this ->redis ->zadd ('z ' , 5 , 'five ' );
1864
1864
1865
1865
$ this ->assertTrue (0 === $ this ->redis ->zRank ('z ' , 'one ' ));
1866
1866
$ this ->assertTrue (1 === $ this ->redis ->zRank ('z ' , 'two ' ));
@@ -2921,29 +2921,29 @@ public function testGetLastError() {
2921
2921
$ this ->assertTrue (strlen ($ this ->redis ->getLastError ()) > 0 );
2922
2922
}
2923
2923
2924
- // Helper function to compare nested results -- from the php.net array_diff page, I believe
2925
- private function array_diff_recursive ($ aArray1 , $ aArray2 ) {
2926
- $ aReturn = array ();
2927
-
2928
- foreach ($ aArray1 as $ mKey => $ mValue ) {
2929
- if (array_key_exists ($ mKey , $ aArray2 )) {
2930
- if (is_array ($ mValue )) {
2931
- $ aRecursiveDiff = $ this ->array_diff_recursive ($ mValue , $ aArray2 [$ mKey ]);
2932
- if (count ($ aRecursiveDiff )) {
2933
- $ aReturn [$ mKey ] = $ aRecursiveDiff ;
2934
- }
2935
- } else {
2936
- if ($ mValue != $ aArray2 [$ mKey ]) {
2937
- $ aReturn [$ mKey ] = $ mValue ;
2938
- }
2939
- }
2940
- } else {
2941
- $ aReturn [$ mKey ] = $ mValue ;
2942
- }
2943
- }
2944
-
2945
- return $ aReturn ;
2946
- }
2924
+ // Helper function to compare nested results -- from the php.net array_diff page, I believe
2925
+ private function array_diff_recursive ($ aArray1 , $ aArray2 ) {
2926
+ $ aReturn = array ();
2927
+
2928
+ foreach ($ aArray1 as $ mKey => $ mValue ) {
2929
+ if (array_key_exists ($ mKey , $ aArray2 )) {
2930
+ if (is_array ($ mValue )) {
2931
+ $ aRecursiveDiff = $ this ->array_diff_recursive ($ mValue , $ aArray2 [$ mKey ]);
2932
+ if (count ($ aRecursiveDiff )) {
2933
+ $ aReturn [$ mKey ] = $ aRecursiveDiff ;
2934
+ }
2935
+ } else {
2936
+ if ($ mValue != $ aArray2 [$ mKey ]) {
2937
+ $ aReturn [$ mKey ] = $ mValue ;
2938
+ }
2939
+ }
2940
+ } else {
2941
+ $ aReturn [$ mKey ] = $ mValue ;
2942
+ }
2943
+ }
2944
+
2945
+ return $ aReturn ;
2946
+ }
2947
2947
2948
2948
public function testScript () {
2949
2949
// Flush any scripts we have
@@ -3114,9 +3114,9 @@ public function testUnserialize() {
3114
3114
3115
3115
// Pass them through redis so they're serialized
3116
3116
foreach ($ vals as $ key => $ val ) {
3117
- $ this ->redis ->setOption (Redis::OPT_SERIALIZER , $ mode );
3117
+ $ this ->redis ->setOption (Redis::OPT_SERIALIZER , $ mode );
3118
3118
3119
- $ key = "key " . ++$ key ;
3119
+ $ key = "key " . ++$ key ;
3120
3120
$ this ->redis ->del ($ key );
3121
3121
$ this ->redis ->set ($ key , $ val );
3122
3122
0 commit comments