callFunction() public static method

This method should only be accessed by functions created by Mocker::overwriteFunction(). If no matching stored function exists, the global function will be called instead.
public static callFunction ( string $name, array &$params = [] ) : mixed
$name string Fully namespaced function name to call.
$params array Params to be passed to the function.
return mixed
Example #1
0
 public function testCallFunctionUsesGlobalFallback()
 {
     $result = Mocker::callFunction('foo\\bar\\baz\\get_called_class');
     $this->assertIdentical('lithium\\test\\Mocker', $result);
 }