Skip to content

Releases: Cobiro/wiremock-phpunit

Version 3.0.0

29 May 17:18

Choose a tag to compare

This is new major release with new features included:

  • From now on we won't reset whole wiremock instance when starting tests
  • After finishing single test - we will reset all stubs and scenarios that were mocked during single test case - will store them in the static array of process
  • Now verification will check also serve events of created stub - ensuring that actually request was matched against correct stub
  • Added methods WiremockTrait::appendStubMappingVerificationandWireMock::appendStubIdVerification` to allow verification of requests against already created stubs in the tests
  • Support paratest parallel testing thanks to changes above
  • Added requestCount and stubRequestCount with default values as 1 - to specify how much requests to given request pattern is expected, and in case stub that is being verified has different request count expected - check it as well - this might be a breaking change if there were multiple requests done

Version 2.1.9

02 Apr 09:53
5aa7240

Choose a tag to compare

Replace % with %% so in case of query string everything works as expected.

Reset scenarios at correct stage

18 Feb 13:32

Choose a tag to compare

2.1.8

Reset scenarios at correct stage

Reset scenarios on reset

18 Feb 13:24

Choose a tag to compare

2.1.7

Reset scenarios on reset

Missing when scenario support

18 Feb 12:32

Choose a tag to compare

  • Add when scenario support

Add scenarios support

18 Feb 11:10

Choose a tag to compare

  • Adds arguments for scenarios support

Version 2.1.4

10 Jan 12:40

Choose a tag to compare

  • Adds $stubRequestBody to WireMockTrait::wireMock to match request body for stubbing part, so multiple request with same URL and method will properly returned mocked responses

Version 2.1.3

10 Jan 08:59
df0b33a

Choose a tag to compare

  • Updated license information

Version 1.1.3

10 Jan 12:39

Choose a tag to compare

  • Adds $stubRequestBody to WireMockTrait::wireMock to match request body for stubbing part, so multiple request with same URL and method will properly returned mocked responses

2.1.2

06 Jun 13:24

Choose a tag to compare

  • Call reset only when there was anything to verify lately