xref: /PHP-5.4/Zend/tests/ns_032.phpt (revision 610c7fbe)
1--TEST--
2032: Namespace support for user functions (php name)
3--FILE--
4<?php
5class Test {
6	static function foo() {
7		echo __CLASS__,"::",__FUNCTION__,"\n";
8	}
9}
10
11function foo() {
12	echo __FUNCTION__,"\n";
13}
14
15call_user_func(__NAMESPACE__."\\foo");
16call_user_func(__NAMESPACE__."\\test::foo");
17--EXPECT--
18foo
19Test::foo
20