Eloquent\Phony\Mock\Builder\MockBuilder::partial PHP 메소드

partial() 공개 메소드

This method will always create a new mock, and will replace the current mock. Calling this method will finalize the mock builder.
public partial ( ) : Eloquent\Phony\Mock\Mock
리턴 Eloquent\Phony\Mock\Mock The mock instance.
    public function partial()
    {
        $this->mock = $this->factory->createPartialMock($this->build(), func_get_args());
        return $this->mock;
    }