src/Facade/FacadeTrait.php
public static function mock($types = []): InstanceHandle
    {
        $container = self::$globals::$container;

        return $container->handleFactory->instanceHandle(
            $container->mockBuilderFactory->create($types)->full()
        );
    }
public static function mock($types = []): InstanceHandle
    {
        $container = self::$globals::$container;

        return $container->handleFactory->instanceHandle(
            $container->mockBuilderFactory->create($types)->full()
        );
    }
public static function mock ( $ types = [ ] ) : InstanceHandle { $ container = self :: $ globals :: $ container ; return $ container -> handleFactory -> instanceHandle ( $ container -> mockBuilderFactory -> create ( $ types ) -> full ( ) ) ; }
Create a new full mock, and return a handle.

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.

@param mixed $types The types to mock.

@return InstanceHandle A handle around the new mock.
Create a new full mock and return a handle .