array_unshift( $param_set, $sampleUTF );
$this->assertEquals(
- call_user_func_array( 'mb_substr', $param_set ),
- call_user_func_array( array( 'Fallback', 'mb_substr' ), $param_set ),
+ MWFunction::callArray( 'mb_substr', $param_set ),
+ MWFunction::callArray( 'Fallback::mb_substr', $param_set ),
'Fallback mb_substr with params ' . implode( ', ', $old_param_set )
);
}
array_unshift( $param_set, $sampleUTF );
$this->assertEquals(
- call_user_func_array( 'mb_strpos', $param_set ),
- call_user_func_array( array( 'Fallback', 'mb_strpos' ), $param_set ),
+ MWFunction::callArray( 'mb_strpos', $param_set ),
+ MWFunction::callArray( 'Fallback::mb_strpos', $param_set ),
'Fallback mb_strpos with params ' . implode( ', ', $old_param_set )
);
$this->assertEquals(
- call_user_func_array( 'mb_strrpos', $param_set ),
- call_user_func_array( array( 'Fallback', 'mb_strrpos' ), $param_set ),
+ MWFunction::callArray( 'mb_strrpos', $param_set ),
+ MWFunction::callArray( 'Fallback::mb_strrpos', $param_set ),
'Fallback mb_strrpos with params ' . implode( ', ', $old_param_set )
);
}