summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-13 10:41:23 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-14 14:38:45 +0200
commit1f48feebb9be61cfd613f8fc62af87fa53bc741b (patch)
treedbe03782c5638e3f6de9f1eb287cbb724b432c1d /ext/reflection/tests
parent11c5c78401b803a8292958731a66ba39528fee0f (diff)
downloadphp-git-1f48feebb9be61cfd613f8fc62af87fa53bc741b.tar.gz
Improve some TypeError and ValueError messages
Closes GH-5377
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r--ext/reflection/tests/ReflectionProperty_getValue_error.phpt2
-rw-r--r--ext/reflection/tests/ReflectionProperty_isInitialized.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/tests/ReflectionProperty_getValue_error.phpt b/ext/reflection/tests/ReflectionProperty_getValue_error.phpt
index c5da067c32..40254319cc 100644
--- a/ext/reflection/tests/ReflectionProperty_getValue_error.phpt
+++ b/ext/reflection/tests/ReflectionProperty_getValue_error.phpt
@@ -66,4 +66,4 @@ Invalid instance:
Given object is not an instance of the class this property was declared in
Missing instance:
-No object provided for getValue() on instance property
+ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties
diff --git a/ext/reflection/tests/ReflectionProperty_isInitialized.phpt b/ext/reflection/tests/ReflectionProperty_isInitialized.phpt
index 29541e405b..ac87873c6a 100644
--- a/ext/reflection/tests/ReflectionProperty_isInitialized.phpt
+++ b/ext/reflection/tests/ReflectionProperty_isInitialized.phpt
@@ -114,7 +114,7 @@ bool(false)
Object type:
bool(false)
Given object is not an instance of the class this property was declared in
-No object provided for isInitialized() on instance property
+ReflectionProperty::isInitialized(): Argument #1 ($object) must be provided for instance properties
Class with __isset:
bool(false)
bool(false)