php-src/Zend/tests/ns_020.phpt
2007-11-07 09:13:50 +00:00

19 lines
213 B
PHP
Executable File

--TEST--
020: Accesing internal namespace function
--FILE--
<?php
namespace X;
use X as Y;
function foo() {
echo __FUNCTION__,"\n";
}
foo();
X::foo();
Y::foo();
::X::foo();
--EXPECT--
X::foo
X::foo
X::foo
X::foo