From 65619e868c2b63a79b858ab05cbc97ae14bbe622 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 30 Aug 2022 16:51:25 +0200 Subject: [PATCH] Fix tests These changes have been overlooked, when 7908aae30cd4241bed505addc3b5f7da27feef8b had been reverted. --- .../tests/array/krsort_variation8.phpt | 24 +++++------ .../tests/array/ksort_variation8.phpt | 40 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/ext/standard/tests/array/krsort_variation8.phpt b/ext/standard/tests/array/krsort_variation8.phpt index 4c1c6f2173d26..caa0f21936027 100644 --- a/ext/standard/tests/array/krsort_variation8.phpt +++ b/ext/standard/tests/array/krsort_variation8.phpt @@ -41,6 +41,10 @@ echo "Done\n"; -- Testing krsort() by supplying mixed value array, 'flag' value is default -- bool(true) array(13) { + [5]=> + string(1) "5" + [4]=> + float(4.01) ["b"]=> string(1) "b" ["array2"]=> @@ -81,23 +85,23 @@ array(13) { string(2) "ab" ["True"]=> string(4) "True" - [5]=> - string(1) "5" - [4]=> - float(4.01) [0]=> float(0.001) ["-.9"]=> string(3) "-.9" - [-2]=> - float(-2.98989) [""]=> string(0) "" + [-2]=> + float(-2.98989) } -- Testing krsort() by supplying mixed value array, 'flag' value is SORT_REGULAR -- bool(true) array(13) { + [5]=> + string(1) "5" + [4]=> + float(4.01) ["b"]=> string(1) "b" ["array2"]=> @@ -138,17 +142,13 @@ array(13) { string(2) "ab" ["True"]=> string(4) "True" - [5]=> - string(1) "5" - [4]=> - float(4.01) [0]=> float(0.001) ["-.9"]=> string(3) "-.9" - [-2]=> - float(-2.98989) [""]=> string(0) "" + [-2]=> + float(-2.98989) } Done diff --git a/ext/standard/tests/array/ksort_variation8.phpt b/ext/standard/tests/array/ksort_variation8.phpt index 236c405c64b95..10ed218211f07 100644 --- a/ext/standard/tests/array/ksort_variation8.phpt +++ b/ext/standard/tests/array/ksort_variation8.phpt @@ -40,26 +40,18 @@ echo "Done\n"; -- Testing ksort() by supplying mixed value array, 'flag' value is default -- bool(true) array(13) { - [""]=> - string(0) "" [-2]=> float(-2.98989) + [""]=> + string(0) "" ["-.9"]=> string(3) "-.9" - [0]=> - float(0.001) - [4]=> - float(4.01) - [5]=> - string(1) "5" ["True"]=> string(4) "True" ["ab"]=> string(2) "ab" ["abcd"]=> string(4) "abcd" - ["abcd%0abcd%0abcd"]=> - string(14) "abcd%0abcd%0abcd" ["array1"]=> array(0) { } @@ -92,31 +84,31 @@ array(13) { } ["b"]=> string(1) "b" + [0]=> + float(0.001) + ["abcd%0abcd%0abcd"]=> + string(14) "abcd%0abcd%0abcd" + [4]=> + float(4.01) + [5]=> + string(1) "5" } -- Testing ksort() by supplying mixed value array, 'flag' value is SORT_REGULAR -- bool(true) array(13) { - [""]=> - string(0) "" [-2]=> float(-2.98989) + [""]=> + string(0) "" ["-.9"]=> string(3) "-.9" - [0]=> - float(0.001) - [4]=> - float(4.01) - [5]=> - string(1) "5" ["True"]=> string(4) "True" ["ab"]=> string(2) "ab" ["abcd"]=> string(4) "abcd" - ["abcd%0abcd%0abcd"]=> - string(14) "abcd%0abcd%0abcd" ["array1"]=> array(0) { } @@ -149,5 +141,13 @@ array(13) { } ["b"]=> string(1) "b" + [0]=> + float(0.001) + ["abcd%0abcd%0abcd"]=> + string(14) "abcd%0abcd%0abcd" + [4]=> + float(4.01) + [5]=> + string(1) "5" } Done