Skip to content

Releases: donatj/mock-webserver

v2.10.0 - PHP 7.2 and PATH Bugfix

20 Feb 19:00
5074522

Choose a tag to compare

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

04 Nov 18:36
959257b

Choose a tag to compare

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

26 Jun 22:47
73b5d53

Choose a tag to compare

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

  • Do not crash with binary response body by @jtojnar in #75

New Contributors

Full Changelog: v2.7.3...v2.8.0

Static Analysis Fixes

09 Jun 20:54
5cc49c1

Choose a tag to compare

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

22 Jan 20:47
1887dcb

Choose a tag to compare

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

30 Oct 15:36
19ace5d

Choose a tag to compare

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

30 Oct 15:47
0d8f449

Choose a tag to compare

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

07 Sep 02:26
0e22d8d

Choose a tag to compare

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

Full Changelog: v2.6.2...v2.7.0

v2.6.2 - Fix script pathing

03 Jul 16:04
f632832

Choose a tag to compare

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

Full Changelog: v2.6.1...v2.6.2

v2.6.1 - PATCH - Fix STDIN might not be defined

28 Nov 11:27
389fe02

Choose a tag to compare

What's Changed

  • Replaced STDIN constant with php://stdin by @tuutti in #48
  • Fix up the descriptor handling a pinch by @donatj in #49

New Contributors

Full Changelog: v2.6.0...v2.6.1