Skip to content

Commit 8bfdcd2

Browse files
committed
Update tests after error message change (WIP)
1 parent 6d8d54f commit 8bfdcd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+105
-63
lines changed

Zend/tests/null_to_non_nullable_special_func.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ var_dump(strlen($null));
88

99
?>
1010
--EXPECTF--
11-
Deprecated: strlen(): Passing null to parameter of type string is deprecated in %s on line %d
11+
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d
1212
int(0)

ext/date/tests/bug54283.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ try {
1111

1212
?>
1313
--EXPECTF--
14-
Deprecated: DatePeriod::__construct(): Passing null to parameter of type string is deprecated in %s on line %d
14+
Deprecated: DatePeriod::__construct(): Passing null to parameter #1 ($start) of type string is deprecated in %s on line %d
1515
string(51) "DatePeriod::__construct(): Unknown or bad format ()"

ext/date/tests/date_interval_create_from_date_string_nullparam.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $i = date_interval_create_from_date_string(null);
88
var_dump($i);
99
?>
1010
--EXPECTF--
11-
Deprecated: date_interval_create_from_date_string(): Passing null to parameter of type string is deprecated in %s on line %d
11+
Deprecated: date_interval_create_from_date_string(): Passing null to parameter #1 ($datetime) of type string is deprecated in %s on line %d
1212

1313
Warning: date_interval_create_from_date_string(): Unknown or bad format () at position 0 ( ): Empty string in %sdate_interval_create_from_date_string_nullparam.php on line 2
1414
bool(false)

ext/date/tests/date_timestamp_set_nullparam2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $dtms021 = date_create();
1414
var_dump(date_timestamp_set($dtms021, null));
1515
?>
1616
--EXPECTF--
17-
Deprecated: date_timestamp_set(): Passing null to parameter of type int is deprecated in %s on line %d
17+
Deprecated: date_timestamp_set(): Passing null to parameter #2 ($timestamp) of type int is deprecated in %s on line %d
1818
object(DateTime)#1 (3) {
1919
["date"]=>
2020
string(26) "1970-01-01 00:00:00.000000"

ext/filter/tests/057.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ foreach (array(null, true, false, 1, "", new stdClass) as $invalid) {
1919
}
2020
?>
2121
--EXPECTF--
22-
Deprecated: filter_input_array(): Passing null to parameter of type int is deprecated in %s on line %d
22+
Deprecated: filter_input_array(): Passing null to parameter #2 ($options) of type array|int is deprecated in %s on line %d
2323

2424
Warning: filter_input_array(): Unknown filter with ID 0 in %s on line %d
2525
bool(false)
2626

27-
Deprecated: filter_var_array(): Passing null to parameter of type int is deprecated in %s on line %d
27+
Deprecated: filter_var_array(): Passing null to parameter #2 ($options) of type array|int is deprecated in %s on line %d
2828

2929
Warning: filter_var_array(): Unknown filter with ID 0 in %s on line %d
3030
bool(false)

ext/hash/tests/hash_init_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ hash_init(): Argument #1 ($algo) must be a cryptographic hashing algorithm if HM
4949
-- Testing hash_init() function with HASH_HMAC and no key --
5050
hash_init(): Argument #3 ($key) cannot be empty when HMAC is requested
5151

52-
Deprecated: hash_init(): Passing null to parameter of type string is deprecated in %s on line %d
52+
Deprecated: hash_init(): Passing null to parameter #3 ($key) of type string is deprecated in %s on line %d
5353
hash_init(): Argument #3 ($key) cannot be empty when HMAC is requested

ext/intl/tests/bug48227.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ foreach (['', 1, NULL, $x] as $value) {
1515
}
1616

1717
?>
18-
--EXPECT--
18+
--EXPECTF--
1919
NumberFormatter::format(): Argument #1 ($num) must be of type int|float, string given
2020
string(1) "1"
21+
22+
Deprecated: NumberFormatter::format(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
2123
string(1) "0"
2224
NumberFormatter::format(): Argument #1 ($num) must be of type int|float, NumberFormatter given

ext/intl/tests/formatter_fail.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ ArgumentCountError: NumberFormatter::create() expects at least 2 arguments, 0 gi
107107
Error: NumberFormatter object is already constructed in %s on line %d
108108
'U_ZERO_ERROR'
109109

110-
Deprecated: NumberFormatter::__construct(): Passing null to parameter of type string is deprecated in %s on line %d
110+
Deprecated: NumberFormatter::__construct(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
111111

112-
Deprecated: NumberFormatter::__construct(): Passing null to parameter of type int is deprecated in %s on line %d
112+
Deprecated: NumberFormatter::__construct(): Passing null to parameter #2 ($style) of type int is deprecated in %s on line %d
113113

114-
Deprecated: NumberFormatter::create(): Passing null to parameter of type string is deprecated in %s on line %d
114+
Deprecated: NumberFormatter::create(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
115115

116-
Deprecated: NumberFormatter::create(): Passing null to parameter of type int is deprecated in %s on line %d
116+
Deprecated: NumberFormatter::create(): Passing null to parameter #2 ($style) of type int is deprecated in %s on line %d
117117

118-
Deprecated: numfmt_create(): Passing null to parameter of type string is deprecated in %s on line %d
118+
Deprecated: numfmt_create(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
119119

120-
Deprecated: numfmt_create(): Passing null to parameter of type int is deprecated in %s on line %d
120+
Deprecated: numfmt_create(): Passing null to parameter #2 ($style) of type int is deprecated in %s on line %d
121121

122122
IntlException: Constructor failed in %s on line %d
123123
'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR'

ext/intl/tests/msgfmt_fail2.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,21 @@ ArgumentCountError: msgfmt_create() expects exactly 2 arguments, 1 given in %s o
126126
ArgumentCountError: MessageFormatter::create() expects exactly 2 arguments, 1 given in %s on line %d
127127
'U_ZERO_ERROR'
128128

129-
Deprecated: MessageFormatter::__construct(): Passing null to parameter of type string is deprecated in %s on line %d
129+
Deprecated: MessageFormatter::__construct(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
130130

131-
Deprecated: MessageFormatter::__construct(): Passing null to parameter of type string is deprecated in %s on line %d
131+
Deprecated: MessageFormatter::__construct(): Passing null to parameter #2 ($pattern) of type string is deprecated in %s on line %d
132132

133133
IntlException: msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR in %s on line %d
134134
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
135135

136-
Deprecated: MessageFormatter::create(): Passing null to parameter of type string is deprecated in %s on line %d
136+
Deprecated: MessageFormatter::create(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
137137

138-
Deprecated: MessageFormatter::create(): Passing null to parameter of type string is deprecated in %s on line %d
138+
Deprecated: MessageFormatter::create(): Passing null to parameter #2 ($pattern) of type string is deprecated in %s on line %d
139139
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
140140

141-
Deprecated: msgfmt_create(): Passing null to parameter of type string is deprecated in %s on line %d
141+
Deprecated: msgfmt_create(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
142142

143-
Deprecated: msgfmt_create(): Passing null to parameter of type string is deprecated in %s on line %d
143+
Deprecated: msgfmt_create(): Passing null to parameter #2 ($pattern) of type string is deprecated in %s on line %d
144144
'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR'
145145

146146
IntlException: msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR in %s on line %d

ext/json/tests/001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ NULL
3232
NULL
3333
NULL
3434

35-
Deprecated: json_decode(): Passing null to parameter of type string is deprecated in %s on line %d
35+
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in %s on line %d
3636
NULL
3737
object(stdClass)#%d (1) {
3838
["test"]=>

ext/mbstring/tests/bug73646.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ if (!function_exists('mb_ereg')) die('skip mbregex support not available');
1010
var_dump(mb_ereg_search_init(NULL));
1111
?>
1212
--EXPECTF--
13-
Deprecated: mb_ereg_search_init(): Passing null to parameter of type string is deprecated in %s on line %d
13+
Deprecated: mb_ereg_search_init(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d
1414
bool(true)

ext/mbstring/tests/mb_str_functions_opt-parameter.phpt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,31 @@ echo mb_strcut('foobarbaz', 6, null, 'UTF-8') . "\n";
1717
echo mb_strimwidth('foobar', 0, 3, null, 'UTF-8') . "\n";
1818
?>
1919
--EXPECTF--
20-
Deprecated: mb_strpos(): Passing null to parameter of type int is deprecated in %s on line %d
20+
Deprecated: mb_strpos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
2121
1
2222

23-
Deprecated: mb_strrpos(): Passing null to parameter of type int is deprecated in %s on line %d
23+
Deprecated: mb_strrpos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
2424
2
2525

26-
Deprecated: mb_stripos(): Passing null to parameter of type int is deprecated in %s on line %d
26+
Deprecated: mb_stripos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
2727
1
2828

29-
Deprecated: mb_strripos(): Passing null to parameter of type int is deprecated in %s on line %d
29+
Deprecated: mb_strripos(): Passing null to parameter #3 ($offset) of type int is deprecated in %s on line %d
3030
2
3131

32-
Deprecated: mb_strstr(): Passing null to parameter of type bool is deprecated in %s on line %d
32+
Deprecated: mb_strstr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
3333
barbaz
3434

35-
Deprecated: mb_strrchr(): Passing null to parameter of type bool is deprecated in %s on line %d
35+
Deprecated: mb_strrchr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
3636
baz
3737

38-
Deprecated: mb_stristr(): Passing null to parameter of type bool is deprecated in %s on line %d
38+
Deprecated: mb_stristr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
3939
barbaz
4040

41-
Deprecated: mb_strrichr(): Passing null to parameter of type bool is deprecated in %s on line %d
41+
Deprecated: mb_strrichr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated in %s on line %d
4242
baz
4343
baz
4444
baz
4545

46-
Deprecated: mb_strimwidth(): Passing null to parameter of type string is deprecated in %s on line %d
46+
Deprecated: mb_strimwidth(): Passing null to parameter #4 ($trim_marker) of type string is deprecated in %s on line %d
4747
foo

ext/pdo_dblib/tests/pdo_dblib_quote.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ string(3) "'1'"
3434
string(2) "''"
3535
string(4) "'42'"
3636

37-
Deprecated: PDO::quote(): Passing null to parameter of type string is deprecated in %s on line %d
37+
Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d
3838
string(2) "''"
3939
string(4) "''''"
4040
string(5) "'foo'"

ext/reflection/tests/ReflectionClass_constructor_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ try {
4848
--EXPECTF--
4949
ReflectionClass::__construct() expects exactly 1 argument, 0 given
5050

51-
Deprecated: ReflectionClass::__construct(): Passing null to parameter of type string is deprecated in %s on line %d
51+
Deprecated: ReflectionClass::__construct(): Passing null to parameter #1 ($objectOrClass) of type object|string is deprecated in %s on line %d
5252
Class "" does not exist
5353
Class "1" does not exist
5454
Class "1" does not exist

ext/reflection/tests/ReflectionClass_getMethod_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Check invalid params:
5959
ReflectionClass::getMethod() expects exactly 1 argument, 0 given
6060
ReflectionClass::getMethod() expects exactly 1 argument, 2 given
6161

62-
Deprecated: ReflectionClass::getMethod(): Passing null to parameter of type string is deprecated in %s on line %d
62+
Deprecated: ReflectionClass::getMethod(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d
6363
Method C::() does not exist
6464
Method C::1() does not exist
6565
Method C::1.5() does not exist

ext/reflection/tests/ReflectionClass_getProperty_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Check invalid params:
5757
ReflectionClass::getProperty() expects exactly 1 argument, 0 given
5858
ReflectionClass::getProperty() expects exactly 1 argument, 2 given
5959

60-
Deprecated: ReflectionClass::getProperty(): Passing null to parameter of type string is deprecated in %s on line %d
60+
Deprecated: ReflectionClass::getProperty(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d
6161
Property C::$ does not exist
6262
Property C::$1 does not exist
6363
Property C::$1.5 does not exist

ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ try {
4242
ReflectionClass::getStaticPropertyValue() expects at most 2 arguments, 3 given
4343
ReflectionClass::getStaticPropertyValue() expects at least 1 argument, 0 given
4444

45-
Deprecated: ReflectionClass::getStaticPropertyValue(): Passing null to parameter of type string is deprecated in %s on line %d
45+
Deprecated: ReflectionClass::getStaticPropertyValue(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d
4646
Property C::$ does not exist
4747
string(3) "def"
4848
ReflectionClass::getStaticPropertyValue(): Argument #1 ($name) must be of type string, array given

ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Test bad arguments:
147147
ReflectionClass::implementsInterface() expects exactly 1 argument, 0 given
148148
ReflectionClass::implementsInterface() expects exactly 1 argument, 2 given
149149

150-
Deprecated: ReflectionClass::implementsInterface(): Passing null to parameter of type string is deprecated in %s on line %d
150+
Deprecated: ReflectionClass::implementsInterface(): Passing null to parameter #1 ($interface) of type ReflectionClass|string is deprecated in %s on line %d
151151
Interface "" does not exist
152152
Interface "ThisClassDoesNotExist" does not exist
153153
Interface "2" does not exist

ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Test bad arguments:
4040
ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given
4141
ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given
4242

43-
Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter of type string is deprecated in %s on line %d
43+
Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter #1 ($class) of type ReflectionClass|string is deprecated in %s on line %d
4444
Class "" does not exist
4545
Class "ThisClassDoesNotExist" does not exist
4646
Class "2" does not exist

ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 3 given
4848
ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 0 given
4949
ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 1 given
5050

51-
Deprecated: ReflectionClass::setStaticPropertyValue(): Passing null to parameter of type string is deprecated in %s on line %d
51+
Deprecated: ReflectionClass::setStaticPropertyValue(): Passing null to parameter #1 ($name) of type string is deprecated in %s on line %d
5252
Class C does not have a property named
5353
Class C does not have a property named 1.5
5454
ReflectionClass::setStaticPropertyValue(): Argument #1 ($name) must be of type string, array given

ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Test bad arguments:
4040
ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given
4141
ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given
4242

43-
Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter of type string is deprecated in %s on line %d
43+
Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter #1 ($class) of type ReflectionClass|string is deprecated in %s on line %d
4444
Class "" does not exist
4545
Class "ThisClassDoesNotExist" does not exist
4646
Class "2" does not exist

ext/spl/tests/SplFixedArray__construct_param_null.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ print_r( $array );
1111

1212
?>
1313
--EXPECTF--
14-
Deprecated: SplFixedArray::__construct(): Passing null to parameter of type int is deprecated in %s on line %d
14+
Deprecated: SplFixedArray::__construct(): Passing null to parameter #1 ($size) of type int is deprecated in %s on line %d
1515
SplFixedArray Object
1616
(
1717
)

ext/spl/tests/SplFixedArray_setSize_param_null.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ $fixed_array->setSize(null);
99
var_dump($fixed_array);
1010
?>
1111
--EXPECTF--
12-
Deprecated: SplFixedArray::setSize(): Passing null to parameter of type int is deprecated in %s on line %d
12+
Deprecated: SplFixedArray::setSize(): Passing null to parameter #1 ($size) of type int is deprecated in %s on line %d
1313
object(SplFixedArray)#1 (0) {
1414
}

ext/spl/tests/iterator_044.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ NULL
9595
===3===
9696
NULL
9797

98-
Deprecated: CachingIterator::offsetExists(): Passing null to parameter of type string is deprecated in %s on line %d
98+
Deprecated: CachingIterator::offsetExists(): Passing null to parameter #1 ($key) of type string is deprecated in %s on line %d
9999
bool(false)
100100

101-
Deprecated: CachingIterator::offsetGet(): Passing null to parameter of type string is deprecated in %s on line %d
101+
Deprecated: CachingIterator::offsetGet(): Passing null to parameter #1 ($key) of type string is deprecated in %s on line %d
102102

103103
Warning: Undefined array key "" in %s on line %d
104104
NULL
@@ -138,10 +138,10 @@ int(1)
138138
===3===
139139
NULL
140140

141-
Deprecated: CachingIterator::offsetExists(): Passing null to parameter of type string is deprecated in %s on line %d
141+
Deprecated: CachingIterator::offsetExists(): Passing null to parameter #1 ($key) of type string is deprecated in %s on line %d
142142
bool(false)
143143

144-
Deprecated: CachingIterator::offsetGet(): Passing null to parameter of type string is deprecated in %s on line %d
144+
Deprecated: CachingIterator::offsetGet(): Passing null to parameter #1 ($key) of type string is deprecated in %s on line %d
145145

146146
Warning: Undefined array key "" in %s on line %d
147147
NULL

ext/standard/tests/array/range_errors.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ foreach( $step_arr as $step ) {
9191
}
9292
}
9393
?>
94-
--EXPECT--
94+
--EXPECTF--
9595
*** Testing error conditions ***
9696

9797
-- Testing ( (low < high) && (step = 0) ) --
@@ -126,6 +126,8 @@ range(): Argument #3 ($step) must not exceed the specified range
126126

127127
-- Testing Invalid steps --
128128
range(): Argument #3 ($step) must be of type int|float, string given
129+
130+
Deprecated: range(): Passing null to parameter #3 ($step) of type int|float is deprecated in %s on line %d
129131
range(): Argument #3 ($step) must not exceed the specified range
130132
range(): Argument #3 ($step) must not exceed the specified range
131133
range(): Argument #3 ($step) must be of type int|float, string given

ext/standard/tests/math/abs_basic.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for ($i = 0; $i < count($values); $i++) {
2626
var_dump($res);
2727
}
2828
?>
29-
--EXPECT--
29+
--EXPECTF--
3030
*** Testing abs() : basic functionality ***
3131
int(23)
3232
int(23)
@@ -39,6 +39,8 @@ int(23)
3939
float(23.45)
4040
float(23.45)
4141
float(23.45)
42+
43+
Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
4244
int(0)
4345
int(1)
4446
int(0)

ext/standard/tests/math/abs_variation.phpt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,17 @@ foreach($inputs as $input) {
7878

7979
fclose($fp);
8080
?>
81-
--EXPECT--
81+
--EXPECTF--
8282
*** Testing abs() : usage variations ***
8383

8484
-- Iteration 1 --
85+
86+
Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
8587
int(0)
8688

8789
-- Iteration 2 --
90+
91+
Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
8892
int(0)
8993

9094
-- Iteration 3 --
@@ -121,9 +125,13 @@ abs(): Argument #1 ($num) must be of type int|float, string given
121125
abs(): Argument #1 ($num) must be of type int|float, classA given
122126

123127
-- Iteration 14 --
128+
129+
Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
124130
int(0)
125131

126132
-- Iteration 15 --
133+
134+
Deprecated: abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
127135
int(0)
128136

129137
-- Iteration 16 --

ext/standard/tests/math/ceil_basic.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ for ($i = 0; $i < count($values); $i++) {
3333
}
3434

3535
?>
36-
--EXPECT--
36+
--EXPECTF--
3737
*** Testing ceil() : basic functionality ***
3838
float(0)
3939
float(0)
@@ -54,4 +54,6 @@ float(-3950)
5454
float(39)
5555
float(1)
5656
float(0)
57+
58+
Deprecated: ceil(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d
5759
float(0)

0 commit comments

Comments
 (0)