summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/static_properties_003_error4.phpt13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/classes/static_properties_003_error4.phpt b/tests/classes/static_properties_003_error4.phpt
index 6a4eafcd2a..7c54fc42ad 100644
--- a/tests/classes/static_properties_003_error4.phpt
+++ b/tests/classes/static_properties_003_error4.phpt
@@ -8,17 +8,20 @@ class C {
$c = new C;
echo "\n--> Access non-visible static prop like instance prop:\n";
-$c->y =& $ref;
+try {
+ $c->y =& $ref;
+} catch (Error $e) {
+ echo $e, "\n";
+}
?>
==Done==
--EXPECTF--
--> Access non-visible static prop like instance prop:
-
-Fatal error: Uncaught Error: Cannot access protected property C::$y in %s:8
+Error: Cannot access protected property C::$y in %s:9
Stack trace:
#0 {main}
-Next Error: Cannot access protected property C::$y in %s:8
+Next Error: Cannot access protected property C::$y in %s:9
Stack trace:
#0 {main}
- thrown in %s on line 8
+==Done==