xref: /PHP-8.1/Zend/tests/ns_022.phpt (revision 7aacc705)
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?>
18--EXPECT--
19a\b\c\foo
20Test::foo
21