summaryrefslogtreecommitdiff
path: root/tests/classes/interface_constant_inheritance_007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/interface_constant_inheritance_007.phpt')
-rw-r--r--tests/classes/interface_constant_inheritance_007.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/classes/interface_constant_inheritance_007.phpt b/tests/classes/interface_constant_inheritance_007.phpt
new file mode 100644
index 0000000000..52695343e1
--- /dev/null
+++ b/tests/classes/interface_constant_inheritance_007.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Ensure a interface can not have private constants
+
+--FILE--
+<?php
+interface A {
+ private const FOO = 10;
+}
+--EXPECTF--
+Fatal error: Access type for interface constant A::FOO must be public in %s on line 3