php-src/Zend/tests/ns_029.phpt

13 lines
225 B
Plaintext
Raw Normal View History

--TEST--
029: Name ambiguity (class name & import name)
--FILE--
<?php
2008-12-05 04:12:30 +08:00
use A\B as Foo;
class Foo {
}
new Foo();
--EXPECTF--
2007-11-13 01:53:36 +08:00
Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4