Releases: Cobiro/wiremock-phpunit
Releases · Cobiro/wiremock-phpunit
Version 3.0.0
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
requestCountandstubRequestCountwith 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
Replace % with %% so in case of query string everything works as expected.
Reset scenarios at correct stage
2.1.8 Reset scenarios at correct stage
Reset scenarios on reset
2.1.7 Reset scenarios on reset
Missing when scenario support
- Add when scenario support
Add scenarios support
- Adds arguments for scenarios support
Version 2.1.4
- Adds
$stubRequestBodytoWireMockTrait::wireMockto match request body for stubbing part, so multiple request with same URL and method will properly returned mocked responses
Version 2.1.3
- Updated license information
Version 1.1.3
- Adds
$stubRequestBodytoWireMockTrait::wireMockto match request body for stubbing part, so multiple request with same URL and method will properly returned mocked responses
2.1.2
- Call reset only when there was anything to verify lately