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

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

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.
public static mock ( mixed $types = [] ) : Eloquent\Phony\Mock\Handle\InstanceHandle
$types mixed The types to mock.
Результат Eloquent\Phony\Mock\Handle\InstanceHandle A handle around the new mock.
    public static function mock($types = array())
    {
        $driver = static::driver();
        return $driver->handleFactory->instanceHandle($driver->mockBuilderFactory->create($types)->full());
    }