summaryrefslogtreecommitdiff
path: root/Zend/tests/constants_003.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-05-12 17:55:21 +0000
committerFelipe Pena <felipe@php.net>2008-05-12 17:55:21 +0000
commit5790b80c53fc7e8a571906872cd127de46cfaecd (patch)
tree472dc2c7ad239d2900d10b9461796995df07033b /Zend/tests/constants_003.phpt
parent30eca098e4df4f0852895bb357b59c8e0308df50 (diff)
downloadphp-git-5790b80c53fc7e8a571906872cd127de46cfaecd.tar.gz
- New tests
Diffstat (limited to 'Zend/tests/constants_003.phpt')
-rw-r--r--Zend/tests/constants_003.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/constants_003.phpt b/Zend/tests/constants_003.phpt
new file mode 100644
index 0000000000..ec3eb6d4ff
--- /dev/null
+++ b/Zend/tests/constants_003.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Using namespace constants and constants of global scope
+--FILE--
+<?php
+
+namespace foo;
+
+const foo = 1;
+
+define('foo', 2);
+
+var_dump(foo, namespace::foo, foo::foo, ::foo, constant('foo'), constant('foo::foo'));
+
+?>
+--EXPECT--
+int(1)
+int(1)
+int(1)
+int(2)
+int(2)
+int(1)