summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_029.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-09-28 19:52:53 +0000
committerDmitry Stogov <dmitry@php.net>2007-09-28 19:52:53 +0000
commitf32ffe9b430b718628f868e449c1fcbdc8ec9ef6 (patch)
treed46f435df40bcfe67bbab884f612a3551448431e /Zend/tests/ns_029.phpt
parent1674976346b5d8294eae99ec395f101f14405e2d (diff)
downloadphp-git-f32ffe9b430b718628f868e449c1fcbdc8ec9ef6.tar.gz
Namespaces
Diffstat (limited to 'Zend/tests/ns_029.phpt')
-rwxr-xr-xZend/tests/ns_029.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/ns_029.phpt b/Zend/tests/ns_029.phpt
new file mode 100755
index 0000000000..a76f4fa9cd
--- /dev/null
+++ b/Zend/tests/ns_029.phpt
@@ -0,0 +1,12 @@
+--TEST--
+029: Name ambiguity (class name & import name)
+--FILE--
+<?php
+import A::B as Foo;
+
+class Foo {
+}
+
+new Foo();
+--EXPECTF--
+Fatal error: Class name 'Foo' conflicts with import name in %sns_029.php on line 4