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

1.1       misho       1: --TEST--
                      2: 085: bracketed namespace
                      3: --FILE--
                      4: <?php
                      5: namespace foo {
                      6: use \foo;
                      7: class bar {
                      8:        function __construct() {echo __METHOD__,"\n";}
                      9: }
                     10: new foo;
                     11: new bar;
                     12: }
                     13: namespace {
                     14: class foo {
                     15:        function __construct() {echo __METHOD__,"\n";}
                     16: }
                     17: use foo\bar as foo1;
                     18: new foo1;
                     19: new foo;
                     20: echo "===DONE===\n";
                     21: }
                     22: --EXPECT--
                     23: foo::__construct
                     24: foo\bar::__construct
                     25: foo\bar::__construct
                     26: foo::__construct
                     27: ===DONE===

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