xref: /php-src/Zend/tests/namespaces/ns_031.phpt (revision 275f63e7)
1--TEST--
2031: Namespace support for user functions (ns name)
3--FILE--
4<?php
5namespace test;
6
7class Test {
8    static function foo() {
9        echo __CLASS__,"::",__FUNCTION__,"\n";
10    }
11}
12
13function foo() {
14    echo __FUNCTION__,"\n";
15}
16
17call_user_func(__NAMESPACE__."\\foo");
18call_user_func(__NAMESPACE__."\\test::foo");
19?>
20--EXPECT--
21test\foo
22test\Test::foo
23