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

refactor: Apply Visitor pattern for Regex matcher #593

Closed tienvx closed 4 months ago

tienvx commented 4 months ago

There are a lot of if conditions in PluginFormatter. I think Visitor pattern can be applied to solve this.