xref: /PHP-7.3/Zend/tests/class_alias_011.phpt (revision 782352c5)
1--TEST--
2Testing callback in alias
3--FILE--
4<?php
5
6class foo {
7	static public function test() {
8		print "hello\n";
9	}
10	public function test2() {
11		print "foobar!\n";
12	}
13}
14
15class_alias('FOO', 'bar');
16
17call_user_func(array('bar', 'test'));
18
19
20$a = new bar;
21call_user_func(array($a, 'test2'));
22
23?>
24--EXPECT--
25hello
26foobar!
27