Annotation of embedaddon/php/Zend/tests/ns_011.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: 011: Function in namespace
        !             3: --FILE--
        !             4: <?php
        !             5: namespace test\ns1;
        !             6: 
        !             7: function foo() {
        !             8:   echo __FUNCTION__,"\n";
        !             9: }
        !            10:   
        !            11: foo();
        !            12: \test\ns1\foo();
        !            13: bar();
        !            14: \test\ns1\bar();
        !            15: 
        !            16: function bar() {
        !            17:   echo __FUNCTION__,"\n";
        !            18: }
        !            19: 
        !            20: --EXPECT--
        !            21: test\ns1\foo
        !            22: test\ns1\foo
        !            23: test\ns1\bar
        !            24: test\ns1\bar

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