xref: /PHP-7.2/Zend/tests/ns_085.phpt (revision f1d7e3ca)
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===
28