summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_031.phpt
blob: 840c08621c1b01bd2d8c1cf390a83959afc05e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
031: Namespace support for user functions (ns name)
--FILE--
<?php
namespace test;

class Test {
	static function foo() {
		echo __CLASS__,"::",__FUNCTION__,"\n";
	}
}

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

call_user_func(__NAMESPACE__."\\foo");
call_user_func(__NAMESPACE__."\\test::foo");
--EXPECT--
test\foo
test\Test::foo