php-src/Zend/tests/ns_030.phpt

13 lines
224 B
Plaintext
Raw Normal View History

--TEST--
030: Name ambiguity (import name & class name)
--FILE--
<?php
class Foo {
}
2007-11-06 15:29:41 +08:00
use A::B as Foo;
new Foo();
--EXPECTF--
2007-11-13 01:53:36 +08:00
Fatal error: Cannot use A::B as Foo because the name is already in use in %sns_030.php on line 5