File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / ns_030.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>