xref: /PHP-5.5/Zend/tests/ns_022.phpt (revision 610c7fbe)
1--TEST--
2022: Name search priority (first look into import, then into current namespace and then for class)
3--FILE--
4<?php
5namespace a\b\c;
6
7use a\b\c as test;
8
9require "ns_022.inc";
10
11function foo() {
12	echo __FUNCTION__,"\n";
13}
14
15test\foo();
16\test::foo();
17--EXPECT--
18a\b\c\foo
19Test::foo
20