You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/reflection/tests/008.phpt
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,28 @@ foreach ($a as $key=>$val) {
32
32
33
33
echo"Done\n";
34
34
?>
35
-
--EXPECT--
35
+
--EXPECTF--
36
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
36
37
string(90) "ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method name"
37
38
string(91) "ReflectionMethod::createFromMethodName(): Argument #1 ($method) must be a valid method name"
39
+
40
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
38
41
string(90) "ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method name"
39
42
string(91) "ReflectionMethod::createFromMethodName(): Argument #1 ($method) must be a valid method name"
43
+
44
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
40
45
string(23) "Class "" does not exist"
41
46
string(23) "Class "" does not exist"
47
+
48
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
42
49
string(24) "Class "a" does not exist"
43
50
string(24) "Class "a" does not exist"
51
+
52
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
44
53
string(23) "Class "" does not exist"
45
54
string(23) "Class "" does not exist"
55
+
56
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
Copy file name to clipboardExpand all lines: ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,11 +65,15 @@ try {
65
65
?>
66
66
--EXPECTF--
67
67
Wrong type of argument (bool):
68
+
69
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
68
70
ReflectionException: ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method name in %s:%d
69
71
Stack trace:
70
72
#0 %s ReflectionMethod->__construct('1')
71
73
#1 {main}
72
74
Wrong type of argument (int):
75
+
76
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
73
77
ReflectionException: ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method name in %s:%d
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
88
94
ReflectionException: ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method name in %s:%d
89
95
Stack trace:
90
96
#0 %s ReflectionMethod->__construct('TestClass')
91
97
#1 {main}
92
98
Class and Method in same string, bad method name:
99
+
100
+
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
93
101
ReflectionException: Method TestClass::foop::dedoop() does not exist in %s:%d
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
98
108
ReflectionException: Class "TestCla" does not exist in %s:%d
Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in %s on line %d
0 commit comments