Skip to content

Commit 70cec65

Browse files
committed
Suggestions test
1 parent 71dfb12 commit 70cec65

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ext/standard/tests/array/range/range_inputs_float_NAN_values.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test range() function with integer inputs and float step
2+
Test range() function with non finite numbers
33
--INI--
44
serialize_precision=14
55
--FILE--

ext/standard/tests/array/range/range_inputs_null_variations.phpt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Test range() function with null as argument.
44
serialize_precision=14
55
--FILE--
66
<?php
7+
echo "range(null, null)\n";
8+
var_dump( range(null, null) );
79

810
echo "null with int boundary\n";
911
var_dump( range(null, 5) );
@@ -20,6 +22,15 @@ var_dump( range('e', null) );
2022
echo "Done\n";
2123
?>
2224
--EXPECTF--
25+
range(null, null)
26+
27+
Deprecated: range(): Passing null to parameter #1 ($start) of type string|int|float is deprecated in %s on line %d
28+
29+
Deprecated: range(): Passing null to parameter #2 ($end) of type string|int|float is deprecated in %s on line %d
30+
array(1) {
31+
[0]=>
32+
int(0)
33+
}
2334
null with int boundary
2435

2536
Deprecated: range(): Passing null to parameter #1 ($start) of type string|int|float is deprecated in %s on line %d

0 commit comments

Comments
 (0)