summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_022.phpt
blob: 27b4b3df24916079e6f17cce09ccaa356b0f4194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
022: Name search priority (first look into import, then into current namespace and then for class)
--FILE--
<?php
namespace a\b\c;

use a\b\c as test;

require "ns_022.inc";

function foo() {
    echo __FUNCTION__,"\n";
}

test\foo();
\test::foo();
?>
--EXPECT--
a\b\c\foo
Test::foo