summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionReference_errors.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionReference_errors.phpt')
-rw-r--r--ext/reflection/tests/ReflectionReference_errors.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/reflection/tests/ReflectionReference_errors.phpt b/ext/reflection/tests/ReflectionReference_errors.phpt
index 8e52a1d223..c9d75d0467 100644
--- a/ext/reflection/tests/ReflectionReference_errors.phpt
+++ b/ext/reflection/tests/ReflectionReference_errors.phpt
@@ -16,7 +16,7 @@ try {
}
try {
- ReflectionReference::fromArrayElement([], 1.5);
+ ReflectionReference::fromArrayElement([], []);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
@@ -40,9 +40,9 @@ var_dump(unserialize('O:19:"ReflectionReference":0:{}'));
?>
--EXPECTF--
-Call to private ReflectionReference::__construct() from invalid context
-ReflectionReference::fromArrayElement() expects parameter 1 to be array, object given
-Key must be array or string
+Call to private ReflectionReference::__construct() from global scope
+ReflectionReference::fromArrayElement(): Argument #1 ($array) must be of type array, stdClass given
+ReflectionReference::fromArrayElement(): Argument #2 ($key) must be of type string|int, array given
Array key not found
Serialization of 'ReflectionReference' is not allowed