Eloquent\Phony\Mock\Method\WrappedMagicMethod::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 ($this->isUncallable) {
            return;
        }
        if (!$arguments instanceof Arguments) {
            $arguments = new Arguments($arguments);
        }
        return $this->callMagicMethod->invoke($this->mock, $this->name, $arguments);
    }