All notable changes to swisnl/php-http-fixture-client
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Nothing
- Allow PSR 17 response factory in client
- Bumped
php-http/mock-client
to^1.6
- Allow installation of
psr/http-message: ^2.0
- Allow installation of
symfony/string: ^7.0
- The
ResponseBuilder
now requires PSR-17 factories instead of a PHP-HTTP factory, to align it with theClient
. This is only a breaking change in the rare case where you provide your own factory to theResponseBuilder
. - Removed
domainAliases
from constructor arguments. Please usesetDomainAliases()
on the instance instead. - Replaced danielstjules/stringy with symfony/string. In some edge cases, mainly special or accented characters, this will affect how query parameters are transformed to a fixture.
- Dropped PHP <7.4 support.
- Add an option to ignore certain query parameters. See readme for more info.
- Fixed issue introduced by internal refactor
- Fixed compatibility with
php-http/mock-client: ^1.5
- PHP 8 support
- Dropped PHP <7.2 support
- Add support for HTTPlug 2.0 and PSR-18
- Added strict mode #3
This release changes the way URIs with GET-params are resolved to fixtures. GET-params are now separated with &
and key/value pairs are combined with =
instead of -
. Besides that, more characters are allowed in the filename. Please see the updated README and pull request #2 for more information.
- Changed logic for converting GET-params to a filename #2
Initial release.