xref: /PHP-7.4/Zend/tests/call_static.phpt (revision d679f022)
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--EXPECT--
17Two() called with 2 arguments
18Three() called with 3 arguments
19Four() called with 4 arguments
20