php-src/Zend/tests/ns_091.phpt

20 lines
385 B
Plaintext
Raw Normal View History

--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 {
2015-01-31 06:54:37 +08:00
use Foo\Bar\{ A, Baz\B };
new A;
new B;
}
--EXPECTF--
Foo\Bar\A::__construct
Foo\Bar\Baz\B::__construct