Skip to content

Testing

phil/address
AreaWhat is covered
Address, AddressArray, CountriesNormalising, refusals, the round trip
Formats and subdivisionsFormats, local formats, generic format, three levels, names in their languages
AddressValidatorRequired and unused fields, postal codes of countries and regions, subdivisions by level
AddressFormatterCanada, the United States, France, Japan in both formats, Brazil, Ukraine, China, Peru, postal labels
DataImporterA fixture of commerceguys/addressing's data turned into data, and refusals

Infection holds the library at 100 % of mutants killed.

vendor/bin/phpunit packages/address/tests

Benchmarks

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

composer bench -- packages/address/tests/Benchmark