2015-01-19 13:21:11 +08:00
|
|
|
--TEST--
|
2015-03-08 04:59:20 +08:00
|
|
|
Group use statements with compound namespaces
|
2015-01-19 13:21:11 +08:00
|
|
|
--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 {
|
|
|
|
|
2015-01-31 06:54:37 +08:00
|
|
|
use Foo\Bar\{ A, Baz\B };
|
2015-01-19 13:21:11 +08:00
|
|
|
new A;
|
|
|
|
new B;
|
|
|
|
}
|
2020-08-09 17:06:57 +08:00
|
|
|
?>
|
2018-02-19 16:59:41 +08:00
|
|
|
--EXPECT--
|
2015-01-19 13:21:11 +08:00
|
|
|
Foo\Bar\A::__construct
|
2018-10-15 10:33:09 +08:00
|
|
|
Foo\Bar\Baz\B::__construct
|