xref: /PHP-7.4/Zend/tests/ns_091.phpt (revision d679f022)
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--EXPECT--
18Foo\Bar\A::__construct
19Foo\Bar\Baz\B::__construct
20