xref: /php-src/Zend/tests/namespaces/ns_091.phpt (revision 275f63e7)
1--TEST--
2Group use statements with compound namespaces
3--FILE--
4<?php
5namespace Foo\Bar {
6    class A { function __construct() {echo __METHOD__,"\n";} }
7}
8namespace Foo\Bar\Baz {
9    class B { function __construct() {echo __METHOD__,"\n";} }
10}
11namespace Fiz\Biz\Buz {
12
13    use Foo\Bar\{ A, Baz\B };
14    new A;
15    new B;
16}
17?>
18--EXPECT--
19Foo\Bar\A::__construct
20Foo\Bar\Baz\B::__construct
21