summaryrefslogtreecommitdiff
path: root/Zend/tests/inter_03.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-12 13:01:59 +0000
committerFelipe Pena <felipe@php.net>2008-03-12 13:01:59 +0000
commit863cd369b961ed7c5067f272b11e93b5030ca2ba (patch)
treeeb4c8439ecdda776f72081187bbf552f7899e35c /Zend/tests/inter_03.phpt
parent32073866e9da6a259e3fe66e2be72a70d11650fe (diff)
downloadphp-git-863cd369b961ed7c5067f272b11e93b5030ca2ba.tar.gz
New tests
Diffstat (limited to 'Zend/tests/inter_03.phpt')
-rw-r--r--Zend/tests/inter_03.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/inter_03.phpt b/Zend/tests/inter_03.phpt
new file mode 100644
index 0000000000..c91f4aa142
--- /dev/null
+++ b/Zend/tests/inter_03.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Testing interface constants with inheritance
+--FILE--
+<?php
+
+interface a {
+ const b = 2;
+}
+
+interface b extends a {
+ const c = self::b;
+}
+
+var_dump(b::c, a::b);
+
+?>
+--EXPECT--
+int(2)
+int(2)