diff options
Diffstat (limited to 'tests/classes/static_properties_undeclared_read.phpt')
-rw-r--r-- | tests/classes/static_properties_undeclared_read.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/classes/static_properties_undeclared_read.phpt b/tests/classes/static_properties_undeclared_read.phpt new file mode 100644 index 0000000..715b41e --- /dev/null +++ b/tests/classes/static_properties_undeclared_read.phpt @@ -0,0 +1,9 @@ +--TEST-- +Reading a non-existent static property +--FILE-- +<?php +Class C {} +echo C::$p; +?> +--EXPECTF-- +Fatal error: Access to undeclared static property: C::$p in %s on line 3
\ No newline at end of file |