summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_091.phpt
blob: 440eaaa356c7cfa9692fdecda1b5de103439d77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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