Annotation of embedaddon/php/Zend/tests/ns_078.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: 002: Import - different syntaxes
                      3: --FILE--
                      4: <?php
                      5: namespace test\ns1;
                      6: 
                      7: class Foo {
                      8:   static function bar() {
                      9:     echo __CLASS__,"\n";
                     10:   }
                     11: }
                     12: 
                     13: class Foo2 {
                     14:   static function bar() {
                     15:     echo __CLASS__,"\n";
                     16:   }
                     17: }
                     18: 
                     19: namespace xyz;
                     20: use test\ns1\Foo;
                     21: use test\ns1\Foo as Bar;
                     22: use \test\ns1\Foo2;
                     23: use \test\ns1\Foo2 as Bar2;
                     24: 
                     25: Foo::bar();
                     26: Bar::bar();
                     27: Foo2::bar();
                     28: Bar2::bar();
                     29: --EXPECT--
                     30: test\ns1\Foo
                     31: test\ns1\Foo
                     32: test\ns1\Foo2
                     33: test\ns1\Foo2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>