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