IMPORTANT NOTE: This extension is for Pact PHP < 9.x. It's not compatible with Pact PHP 10.x. If you have ideas to integrate Pact PHP 10.x into Codeception, feel free to create PRs to this project.
composer require --dev "tienvx/codeception-pact-php-extension"
Enable the extensions for your suite:
extensions:
enabled:
- CodeceptionPactPhp\Extension\Env:
PACT_CONSUMER_NAME: BookPublisher
PACT_PROVIDER_NAME: BookStore
- CodeceptionPactPhp\Extension\Pact