Skip to content

Commit dd4e487

Browse files
committed
Update tests after error message change (WIP)
1 parent b1b510e commit dd4e487

28 files changed

+67
-27
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/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

0 commit comments

Comments
 (0)