php-src/Zend/tests/ns_020.phpt

19 lines
207 B
Plaintext
Raw Normal View History

--TEST--
2018-08-10 10:19:55 +08:00
020: Accessing internal namespace function
--FILE--
<?php
namespace X;
2007-11-06 15:29:41 +08:00
use X as Y;
function foo() {
echo __FUNCTION__,"\n";
}
foo();
2008-12-05 04:12:30 +08:00
\X\foo();
Y\foo();
\X\foo();
--EXPECT--
2008-12-05 04:12:30 +08:00
X\foo
X\foo
X\foo
X\foo