pact-foundation / pact-php

PHP version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project
Apache License 2.0
271 stars 92 forks source link

chore: Assert json encoded value is string #573

Closed tienvx closed 4 months ago

tienvx commented 4 months ago

Fix errors like this:

Parameter #2 $actualJson of method                                            
         PHPUnit\Framework\Assert::assertJsonStringEqualsJsonString() expects string,  
         string|false given.

For https://github.com/pact-foundation/pact-php/pull/564