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

1.1       misho       1: --TEST--
                      2: 022: Name search priority (first look into import, then into current namespace and then for class)
                      3: --FILE--
                      4: <?php
                      5: namespace a\b\c;
                      6: 
                      7: use a\b\c as test;
                      8: 
                      9: require "ns_022.inc";
                     10: 
                     11: function foo() {
                     12:        echo __FUNCTION__,"\n";
                     13: }
                     14: 
                     15: test\foo();
                     16: \test::foo();
                     17: --EXPECT--
                     18: a\b\c\foo
                     19: Test::foo

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