Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
These changes have been overlooked, when 7908aae
had been reverted.
  • Loading branch information
cmb69 authored and ramsey committed Aug 30, 2022
1 parent 5b6a5b0 commit 183a7b9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
24 changes: 12 additions & 12 deletions ext/standard/tests/array/krsort_variation8.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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"]=>
Expand Down Expand Up @@ -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"]=>
Expand Down Expand Up @@ -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
40 changes: 20 additions & 20 deletions ext/standard/tests/array/ksort_variation8.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}
Expand Down Expand Up @@ -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) {
}
Expand Down Expand Up @@ -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

0 comments on commit 183a7b9

Please sign in to comment.