summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_020.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/ns_020.phpt')
-rwxr-xr-xZend/tests/ns_020.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/ns_020.phpt b/Zend/tests/ns_020.phpt
new file mode 100755
index 0000000000..32325e09d2
--- /dev/null
+++ b/Zend/tests/ns_020.phpt
@@ -0,0 +1,18 @@
+--TEST--
+020: Accesing internal namespace function
+--FILE--
+<?php
+namespace X;
+import X as Y;
+function foo() {
+ echo __FUNCTION__,"\n";
+}
+foo();
+X::foo();
+Y::foo();
+::X::foo();
+--EXPECT--
+X::foo
+X::foo
+X::foo
+X::foo