php-src/Zend/tests/ns_030.phpt

13 lines
222 B
Plaintext
Raw Normal View History

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