Registry / testing / pact-foundation-pact-php

pact-foundation-pact-php

JSON →
library10.2.1phppackagistunverified

Enables consumer driven contract testing, following the PACT foundation principles.

composer require pact-foundation/pact-php
INSTALL
IMPORT
SIG · PACT-FOUNDATION-PA
P
pact-foundation-pact-php
testingphpv10.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InteractionBuilder
✓ use PhpPact\Consumer\InteractionBuilder;

Sets up a consumer-driven contract test interaction.

use PhpPact\Consumer\InteractionBuilder; $builder = new InteractionBuilder(); $builder->given('some state') ->uponReceiving('a request') ->withRequest('GET', '/path') ->willRespondWith(200, ['Content-Type' => 'application/json']);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
10.2.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
pact-foundation-pact-php — pip install pact-foundation-pact-php · libregistry