Eloquent\Phony\Mock\Builder\MockBuilder::partialWith PHP Method

partialWith() public method

This method will always create a new mock, and will replace the current mock. Calling this method will finalize the mock builder. This method supports reference parameters.
public partialWith ( Arguments | array | null $arguments = [] ) : Eloquent\Phony\Mock\Mock
$arguments Eloquent\Phony\Call\Arguments | array | null The constructor arguments, or null to bypass the constructor.
return Eloquent\Phony\Mock\Mock The mock instance.
    public function partialWith($arguments = array())
    {
        $this->mock = $this->factory->createPartialMock($this->build(), $arguments);
        return $this->mock;
    }