xref: /PHP-7.4/Zend/tests/ns_031.phpt (revision 610c7fbe)
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--EXPECT--
20test\foo
21test\Test::foo
22