Annotation of embedaddon/php/Zend/tests/ns_086.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: 086: bracketed namespace with encoding
! 3: --FILE--
! 4: <?php
! 5: declare(encoding='utf-8');
! 6: namespace foo {
! 7: use \foo;
! 8: class bar {
! 9: function __construct() {echo __METHOD__,"\n";}
! 10: }
! 11: new foo;
! 12: new bar;
! 13: }
! 14: namespace {
! 15: class foo {
! 16: function __construct() {echo __METHOD__,"\n";}
! 17: }
! 18: use foo\bar as foo1;
! 19: new foo1;
! 20: new foo;
! 21: echo "===DONE===\n";
! 22: }
! 23: --EXPECT--
! 24: foo::__construct
! 25: foo\bar::__construct
! 26: foo\bar::__construct
! 27: foo::__construct
! 28: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>