summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_030.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/ns_030.phpt')
-rwxr-xr-xZend/tests/ns_030.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/ns_030.phpt b/Zend/tests/ns_030.phpt
new file mode 100755
index 0000000000..c87b293bb6
--- /dev/null
+++ b/Zend/tests/ns_030.phpt
@@ -0,0 +1,12 @@
+--TEST--
+030: Name ambiguity (import name & class name)
+--FILE--
+<?php
+class Foo {
+}
+
+import A::B as Foo;
+
+new Foo();
+--EXPECTF--
+Fatal error: Import name 'Foo' conflicts with defined class in %sns_030.php on line 5