PHPSpec2\Mocker\MockExpectation::__invoke PHP Method

__invoke() public method

public __invoke ( )
    public function __invoke()
    {
        $this->arguments = $this->unwrapper->unwrapAll(func_get_args());
        if (null !== $this->expectation) {
            $this->mocker->withArguments($this->expectation, $this->arguments);
        }
        return $this;
    }