xref: /php-src/Zend/tests/namespaces/ns_085.phpt (revision 275f63e7)
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?>
23--EXPECT--
24foo::__construct
25foo\bar::__construct
26foo\bar::__construct
27foo::__construct
28===DONE===
29