Skip to content

Testing

phil/phone
AreaWhat is covered
PhoneNumberParsing in 15 countries, prefixes, extensions, refusals, regions and types, the four formats, storage
Territories, TerritoryFinding plans, national and international prefixes, types, leading digits
MetadataImporterA fixture of libphonenumber's XML turned into data, and refusals

Infection holds the library at 100 % of mutants killed.

vendor/bin/phpunit packages/phone/tests

Benchmarks

The phpbench benchmarks in tests/Benchmark measure the hot paths at several sizes. From the root of the monorepo:

composer bench -- packages/phone/tests/Benchmark