I'd like to use libphonenumber
to validate phone numbers, but a number of our integration tests are using Faker
to generate test data, and the numbers that this generates are not always valid based on the full validation rules defined in libphonenumber
Is there any way we can use libphonenumber
to generate a random set of valid phone numbers? I'm aware of getExampleNumber
but this isn't suitable as it only returns a single number of a given type.