summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-03-18 21:39:56 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-03-23 17:23:45 +0100
commitd7b73de8c9299ef1e7c55f22449dff3e0833f68e (patch)
treeffcd00ce0bd09844a0a36271d288ae622379f76a /ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
parent568592f1e9481c496fe2f141c4330fa653b6b20b (diff)
downloadphp-git-d7b73de8c9299ef1e7c55f22449dff3e0833f68e.tar.gz
Improve error messages of ext/reflection
Closes GH-5277
Diffstat (limited to 'ext/reflection/tests/ReflectionMethod_constructor_error1.phpt')
-rw-r--r--ext/reflection/tests/ReflectionMethod_constructor_error1.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
index 186c61b2b0..391beced52 100644
--- a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
+++ b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt
@@ -65,17 +65,17 @@ try {
?>
--EXPECTF--
Wrong type of argument (bool):
-ReflectionException: Invalid method name 1 in %s
+ReflectionException: ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be a valid method name in %s:%d
Stack trace:
#0 %s ReflectionMethod->__construct('1')
#1 {main}
Wrong type of argument (int):
-ReflectionException: Invalid method name 3 in %s
+ReflectionException: ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be a valid method name in %s:%d
Stack trace:
#0 %s ReflectionMethod->__construct('3')
#1 {main}
Wrong type of argument (bool, string):
-ReflectionException: The parameter class is expected to be either a string or an object in %s
+ReflectionException: ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be of type object|string, bool given in %s:%d
Stack trace:
#0 %s ReflectionMethod->__construct(true, 'foo')
#1 {main}
@@ -85,7 +85,7 @@ Stack trace:
#0 %s ReflectionMethod->__construct('TestClass', '1')
#1 {main}
No method given:
-ReflectionException: Invalid method name TestClass in %s
+ReflectionException: ReflectionMethod::__construct(): Argument #1 ($class_or_method) must be a valid method name in %s:%d
Stack trace:
#0 %s ReflectionMethod->__construct('TestClass')
#1 {main}