Return to ns_084.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests |
1.1 ! misho 1: --TEST-- ! 2: 084: unbracketed namespace with nested bracketed namespace ! 3: --FILE-- ! 4: <?php ! 5: namespace foo; ! 6: use \foo; ! 7: class bar { ! 8: function __construct() {echo __METHOD__,"\n";} ! 9: } ! 10: new foo; ! 11: new bar; ! 12: namespace oops { ! 13: class foo { ! 14: function __construct() {echo __METHOD__,"\n";} ! 15: } ! 16: use foo\bar as foo1; ! 17: new foo1; ! 18: new foo; ! 19: } ! 20: ?> ! 21: ===DONE=== ! 22: --EXPECTF-- ! 23: Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in %sns_084.php on line 9