pact-php icon indicating copy to clipboard operation
pact-php copied to clipboard

Some issues when upgrade pact-php from version 8 to 10

Open xinnings opened this issue 10 months ago • 9 comments

  • In version 8, there is a mock server, but seems it's gone in version 10, so how to migrate that part? I assume we still need the mock server?
  • In this example of version 10, there is a class use App\Service\HttpClientService; outside the package, what is it?
  • I tried to run the testing, but I got this error, any idea how to fix it?
    [FFI\Exception] Failed loading '/app/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/Model/../../../../../bin/pact-ffi-lib/pact.so'  
    
    #1  /app/vendor/pact-foundation/pact-php/src/PhpPact/FFI/Client.php:19
    #2  /app/vendor/pact-foundation/pact-php/src/PhpPact/Consumer/Factory/InteractionDriverFactory.php:16
    #3  /app/vendor/pact-foundation/pact-php/src/PhpPact/Consumer/InteractionBuilder.php:23
    

Thanks

xinnings avatar Dec 13 '24 02:12 xinnings