xref: /PHP-5.6/Zend/tests/call_static.phpt (revision 610c7fbe)
1--TEST--
2__callStatic() Magic method
3--FILE--
4<?php
5class Test
6{
7	static function __callStatic($fname, $args)
8	{
9		echo $fname, '() called with ', count($args), " arguments\n";
10	}
11}
12
13call_user_func("Test::Two", 'A', 'B');
14call_user_func(array("Test", "Three"), NULL, 0, false);
15Test::Four(5, 6, 7, 8);
16
17--EXPECT--
18Two() called with 2 arguments
19Three() called with 3 arguments
20Four() called with 4 arguments
21