php-src/Zend/tests/ns_030.phpt
2012-10-10 10:27:49 +08:00

13 lines
222 B
PHP

--TEST--
030: Name ambiguity (import name & class name)
--FILE--
<?php
class Foo {
}
use A\B as Foo;
new Foo();
--EXPECTF--
Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5