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

1.1     ! misho       1: --TEST--
        !             2: 084: unbracketed namespace with nested 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: namespace oops {
        !            13: class foo {
        !            14:        function __construct() {echo __METHOD__,"\n";}
        !            15: }
        !            16: use foo\bar as foo1;
        !            17: new foo1;
        !            18: new foo;
        !            19: }
        !            20: ?>
        !            21: ===DONE===
        !            22: --EXPECTF--
        !            23: Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in %sns_084.php on line 9

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