I am writing my first contract test with Pact loca...
# pact-php
s
I am writing my first contract test with Pact locally:
Copy code
$request = new ConsumerRequest();
$request
    ->setMethod('GET')
    ->setPath("person")
    ->addHeader('Accept', 'application/json');

$response = new ProviderResponse();
$response
    ->setStatus(200)
    ->addHeader('Content-Type', 'application/json')
    ->setBody([]);

$config  = new MockServerEnvConfig();
$builder = new InteractionBuilder($config);
$builder->given("list of person")
    ->uponReceiving('A get request to /person/{id}')
    ->with($request)
    ->willRespondWith($response);
$this->assertTrue($builder->verify());
After running Phpunit, I get this error :
GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: person (see <https://curl.haxx.se/libcurl/c/libcurl-errors.html>)
it seems my connection with Pact broker on my local is not established but I check my connection and everything seem fine