mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
7aacc705d0
Closes GH-5958
21 lines
387 B
PHP
21 lines
387 B
PHP
--TEST--
|
|
Group use statements with compound namespaces
|
|
--FILE--
|
|
<?php
|
|
namespace Foo\Bar {
|
|
class A { function __construct() {echo __METHOD__,"\n";} }
|
|
}
|
|
namespace Foo\Bar\Baz {
|
|
class B { function __construct() {echo __METHOD__,"\n";} }
|
|
}
|
|
namespace Fiz\Biz\Buz {
|
|
|
|
use Foo\Bar\{ A, Baz\B };
|
|
new A;
|
|
new B;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Foo\Bar\A::__construct
|
|
Foo\Bar\Baz\B::__construct
|