summaryrefslogtreecommitdiff
path: root/tests/classes/constants_visibility_007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/constants_visibility_007.phpt')
-rw-r--r--tests/classes/constants_visibility_007.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/classes/constants_visibility_007.phpt b/tests/classes/constants_visibility_007.phpt
new file mode 100644
index 0000000000..f1b040c5c3
--- /dev/null
+++ b/tests/classes/constants_visibility_007.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Final constants are not allowed
+--FILE--
+<?php
+class A {
+ final const X = 1;
+}
+?>
+--EXPECTF--
+Fatal error: Cannot use 'final' as constant modifier in %s on line 3