summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_020.phpt
blob: ec4fda02987186de0f08cb1f76ea50e883c72254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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