public invokeWith ( |
||
$arguments | The arguments. | |
return | mixed | The result of invocation. |
public function invokeWith($arguments = array())
{
if ($this->isUncallable) {
return;
}
if (!$arguments instanceof Arguments) {
$arguments = new Arguments($arguments);
}
return $this->callMagicMethod->invoke($this->mock, $this->name, $arguments);
}