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

1.1       misho       1: --TEST--
                      2: 012: Import in namespace and functions
                      3: --FILE--
                      4: <?php
                      5: namespace test\ns1;
                      6: 
                      7: function foo() {
                      8:   echo __FUNCTION__,"\n";
                      9: }
                     10: 
                     11: use test\ns1 as ns2;
                     12: use test as ns3;
                     13: 
                     14: foo();
                     15: bar();
                     16: \test\ns1\foo();
                     17: \test\ns1\bar();
                     18: ns2\foo();
                     19: ns2\bar();
                     20: ns3\ns1\foo();
                     21: ns3\ns1\bar();
                     22: 
                     23: function bar() {
                     24:   echo __FUNCTION__,"\n";
                     25: }
                     26: 
                     27: --EXPECT--
                     28: test\ns1\foo
                     29: test\ns1\bar
                     30: test\ns1\foo
                     31: test\ns1\bar
                     32: test\ns1\foo
                     33: test\ns1\bar
                     34: test\ns1\foo
                     35: test\ns1\bar

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