Eloquent\Phony\Mock\Method\WrappedCustomMethod::invokeWith PHP Method

invokeWith() public method

This method supports reference parameters.
public invokeWith ( Arguments | array $arguments = [] ) : mixed
$arguments Eloquent\Phony\Call\Arguments | array The arguments.
return mixed The result of invocation.
    public function invokeWith($arguments = array())
    {
        if (!$arguments instanceof Arguments) {
            $arguments = new Arguments($arguments);
        }
        return $this->invoker->callWith($this->customCallback, $arguments);
    }