Releases: php-http/mock-client
Releases · php-http/mock-client
1.6.1
- Fix warnings with PHP 8.4.
1.6.0
Fixed
- We actually did fallback to the legacy message factory discovery so 1.5.2 is broken.
Changed to use PSR 17 factory discovery.
If you allow the composer plugin of php-http/discovery
, things will work out of the box.
When disabled and you do not have a PSR-17 factory installed, you will need to explicitly require one, e.g. nyholm/psr7
.
1.5.2 (broken)
Broken, use 1.6.0 instead
Removed
- Removed dependency on
php-http/message-factory
as the mock client does not use it.
1.5.1
Added
- Allow psr/http-message version 2
- Build with PHP 8.1 and 8.2
1.5.0
Changed
- Provide
psr/http-client-implementation
- Drop support for
php-http/httplug: 1.*
to be sure to implement a version of the client interface that implements the PSR.
1.4.0
Added
- Support for the PSR-17 response factory
Changed
- Drop support for PHP 5 and 7.0
- Consitent implementation of union type checking
Fixed
reset()
should not trigger setDefaultException
error condition
1.3.1
Fixed
reset()
also resets conditionalResults
1.3.0
Added
- Conditional mock functionality
1.2.0
Added
- Support for HTTPlug 2.0.
- Support for php-http/client-common 2.0.