19eae81e2ae170f1eae42e11a10e4db88fa41fca
3 class MWFunctionTest
extends MediaWikiTestCase
{
5 function testCallUserFuncWorkarounds() {
8 MWFunction
::call( 'MWFunctionTest::someMethod' ),
9 call_user_func( array( 'MWFunctionTest', 'someMethod' ) )
12 MWFunction
::call( 'MWFunctionTest::someMethod', 'foo', 'bar', 'baz' ),
13 call_user_func( array( 'MWFunctionTest', 'someMethod' ), 'foo', 'bar', 'baz' )
19 MWFunction
::callArray( 'MWFunctionTest::someMethod', array() ),
20 call_user_func_array( array( 'MWFunctionTest', 'someMethod' ), array() )
23 MWFunction
::callArray( 'MWFunctionTest::someMethod', array( 'foo', 'bar', 'baz' ) ),
24 call_user_func_array( array( 'MWFunctionTest', 'someMethod' ), array( 'foo', 'bar', 'baz' ) )
29 public static function someMethod() {
30 return func_get_args();