Releases: donatj/mock-webserver
v2.10.0 - PHP 7.2 and PATH Bugfix
What's Changed
Notice: PHP 7.2 is now the minimum supported version because of a vulnerability with older versions of PHPUnit.
See: CVE-2026-24765 / GHSA-vvj3-c3rp-c85p for more information.
Fixes
- Bug where if PHP itself was not in the PATH of the running PHP server process, it would fail to start with a message that the port might not be open. This became a major issue with macOS 26.3
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #83
- Upgrade PHPUnit, increase minimum PHP to 7.2 by @donatj in #86
- Use PHP_BINARY for server command execution by @donatj in #85
Full Changelog: v2.9.0...v2.10.0
v2.9.0 - ResponseByMethod respects MultiResponses
Fixes
#81 - Nested ResponseByMethod does not work with ResponseStack in sequential requests by @juslintek
What's Changed
- Add PHP 8.5 to CI workflow PHP versions by @donatj in #79
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #80
- Make ResponseByMethod respect sub MultiResponseInterfaces by @donatj in #82
Full Changelog: v2.8.0...v2.9.0
v2.8.0 - Better Handle Binary Responses
Minor BC Break
The hashes generated by donatj\MockWebServer\Response::getRef have changed.
While this value was generally for internal use, it was not marked as such so this is a breaking change.
What's Changed
New Contributors
Full Changelog: v2.7.3...v2.8.0
Static Analysis Fixes
What's Changed
Adds phpstan, makes appropriate fixes
- Update corpus/coding-standard requirement from ^0.6.0 || ^0.8.0 to ^0.6.0 || ^0.9.0 by @dependabot in #73
- Add phpstan to ci by @donatj in #61
Full Changelog: v2.7.2...v2.7.3
v2.7.2 - Fix crash on calling stop twice
What's Changed
- Update PHP to 8.3 - ci.yml by @donatj in #65
- Update PHP to 8.3 - cover.yml by @donatj in #64
- Update PHP to 8.3 - lint.yml by @donatj in #66
- Update corpus/coding-standard requirement from ^0.6.0 || ^0.7.0 to ^0.6.0 || ^0.8.0 by @dependabot in #63
Full Changelog: v2.7.1...v2.7.2
Fix stderr/stdout issue with file stream wrappers
What's Changed
Fixed an issue with 'files' stream wrappers not being able to handle [file, path, mode] syntax - thanks to @sigma-z
- Bump actions/checkout from 3 to 4 by @dependabot in #58
- Fix descriptor opening for bad stream wrappers by @donatj in #60
Full Changelog: v2.7.0...v2.7.1
v2.6.3 - Backport fix stderr/stdout issue with file stream wrappers
Backports descriptor fix from v2.7.1 onto the v2.6.x release
Full Changelog: v2.6.2...v2.6.3
v2.7.0 - DelayedResponse support for InitializingResponseInterface's
What's Changed
Summary
DelayedResponse now implements InitializingResponseInterface to enable support for sub-responses that implement InitializingResponseInterface - Thanks @Jarlakxen
Massively improved test coverage.
PRs
- Improve test coverage by @donatj in #55
- Update corpus/coding-standard requirement from ^0.6.0 to ^0.6.0 || ^0.7.0 by @dependabot in #51
- Add DelayResponse support to ResponseStack by @Jarlakxen in #56
- Improve test coverage of DelayedResponse by @donatj in #57
New Contributors
- @Jarlakxen made their first contribution in #56
Full Changelog: v2.6.2...v2.7.0
v2.6.2 - Fix script pathing
Fixes a regression where the path to the server script was not being escaped, causing problems if there was a space anywhere in the path.
What's Changed
- Escape script path by @donatj ( Thanks @SiestaCat ) in #54
Full Changelog: v2.6.1...v2.6.2