php-src/Zend/tests/ns_091.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

20 lines
384 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