src/Viserio/Component/StaticalProxy/StaticalProxy.php
protected static function createFreshMockInstance(string $name): MockInterface
    {
        static::$resolvedInstance[$name] = $mock = static::createMock();

        $mock->shouldAllowMockingProtectedMethods();

        return $mock;
    }
protected static function createFreshMockInstance(string $name): MockInterface
    {
        static::$resolvedInstance[$name] = $mock = static::createMock();

        $mock->shouldAllowMockingProtectedMethods();

        return $mock;
    }
Create a fresh mock instance for the given class.

@param string $name

@return \Mockery\MockInterface