Skip to content

Testing

Igor Sazonov edited this page Mar 5, 2026 · 1 revision

The Shippo PHP SDK has a comprehensive test suite to ensure code quality and reliability. The test suite is built using Pest PHP and includes both unit and integration tests.

Running the Test Suite

To run the test suite, you can use the following Composer script:

composer test

Running Tests with Coverage

To run the test suite and generate a code coverage report, you can use the following Composer script:

composer test-coverage

The coverage report will be generated in the build/coverage directory.

Static Analysis

The SDK uses PHPStan for static analysis to help prevent bugs before they happen. To run the static analysis, you can use the following Composer script:

composer analyse

Clone this wiki locally