Illuminate\Support\Facades\Facade::createMockByName PHP Method

createMockByName() protected static method

Create a fresh mock instance for the given class.
protected static createMockByName ( string $name ) : Mockery\MockInterface
$name string
return Mockery\MockInterface
    protected static function createMockByName($name)
    {
        $class = static::getMockableClass($name);
        return $class ? Mockery::mock($class) : Mockery::mock();
    }