'Generating fake phone numbers that are valid based on libphonenumber's rules
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
