Eloquent\Phony\Facade\AbstractFacade::partialMock PHP Метод

partialMock() публичный статический Метод

Each value in $types can be either a class name, or an ad hoc mock definition. If only a single type is being mocked, the class name or definition can be passed without being wrapped in an array. Omitting $arguments will cause the original constructor to be called with an empty argument list. However, if a null value is supplied for $arguments, the original constructor will not be called at all.
public static partialMock ( mixed $types = [], Arguments | array | null $arguments = [] ) : Eloquent\Phony\Mock\Handle\InstanceHandle
$types mixed The types to mock.
$arguments Eloquent\Phony\Call\Arguments | array | null The constructor arguments, or null to bypass the constructor.
Результат Eloquent\Phony\Mock\Handle\InstanceHandle A handle around the new mock.
    public static function partialMock($types = array(), $arguments = array())
    {
        $driver = static::driver();
        return $driver->handleFactory->instanceHandle($driver->mockBuilderFactory->create($types)->partialWith($arguments));
    }