xref: /PHP-5.3/Zend/tests/ns_085.phpt (revision ea45b713)
1--TEST--
2085: bracketed namespace
3--FILE--
4<?php
5namespace foo {
6use \foo;
7class bar {
8	function __construct() {echo __METHOD__,"\n";}
9}
10new foo;
11new bar;
12}
13namespace {
14class foo {
15	function __construct() {echo __METHOD__,"\n";}
16}
17use foo\bar as foo1;
18new foo1;
19new foo;
20echo "===DONE===\n";
21}
22--EXPECT--
23foo::__construct
24foo\bar::__construct
25foo\bar::__construct
26foo::__construct
27===DONE===