Skip to content

An PHPUnit extension to load and test Pacto contracts

License

Notifications You must be signed in to change notification settings

danieledangeli/pacto-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plase Note, this version is in Beta!

Pacto-php

A PHPUnit extension to load and test Pacto contracts

Pacto-php is a tool to validate Pact contracts.

If you want to know more about Pact and Contract Testing please read more here.

##How it works

Pacto-php takes a list of "Pact" contract and translate them into psr7 requests/response object called Pacto. Given a Pacto, you can take the psr7 request to make a real call against your service provider (written in PHP)

Given the server response, you have to translate it into a psr7 Response object, and then you can simply verify if the pact has been honored.

##Example usage

Silex Php Pacto

About

An PHPUnit extension to load and test Pacto contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages