xref: /PHP-7.0/Zend/tests/ns_081.phpt (revision ea45b713)
1--TEST--
2081: bracketed namespace with nested unbracketed namespace
3--FILE--
4<?php
5namespace foo {
6use \foo;
7class bar {
8	function __construct() {echo __METHOD__,"\n";}
9}
10new foo;
11new bar;
12namespace oops;
13class foo {
14	function __construct() {echo __METHOD__,"\n";}
15}
16use foo\bar as foo1;
17new foo1;
18new foo;
19}
20?>
21===DONE===
22--EXPECTF--
23Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in %sns_081.php on line 9
24