Annotation of embedaddon/php/Zend/tests/ns_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: 002: Import in namespace
3: --FILE--
4: <?php
5: namespace test\ns1;
6:
7: class Foo {
8: static function bar() {
9: echo __CLASS__,"\n";
10: }
11: }
12:
13: use test\ns1\Foo as Bar;
14: use test\ns1 as ns2;
15: use test\ns1;
16:
17: Foo::bar();
18: \test\ns1\Foo::bar();
19: Bar::bar();
20: ns2\Foo::bar();
21: ns1\Foo::bar();
22: --EXPECT--
23: test\ns1\Foo
24: test\ns1\Foo
25: test\ns1\Foo
26: test\ns1\Foo
27: test\ns1\Foo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>