php-src/Zend/tests/ns_030.phpt
Dmitry Stogov f32ffe9b43 Namespaces
2007-09-28 19:52:53 +00:00

13 lines
216 B
PHP
Executable File

--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