- FIX: Updated to php 8
- FIX: Updated to php 7.1
- ADD: Option for responding to a RequestInterface via closure
- FIX: Tests for
zeroOrMoreTimes
- ADD: Add compatibility to Guzzle 6, breaking compatibility with prior versions
- MOD: Support newer Guzzle versions
- MOD: Add
role: Maintainer
to composer.json
- MOD: Add Nick Shipes as a maintainer
- ADD:
zeroOrMoreTimes
expectation - MOD: Improve error messages on no matching request expectation
- FIX: Check for null response body, before attempting to parse
- FIX: minor error handling fix
- FIX: Throw CompoundException on request with multiple failures
- ADD: Accept custom callables for all expectations
- ADD: Add custom expectation callables:
Any
,ArrayContains
,ArrayEquals
,Equals
,Matches
- MOD: Refactor
RequestExpectation
to use callables for all request validations
- FIX: Was not properly comparison request bodies containing null data values.
- FIX: Fix incorrect 'call count' exception message
See git history for a full list of changes
- ADD: Initial project setup
- ADD: GuzzleHttpMock\Mock
- ADD: RequestExpectations: withUrl withMethod withQuery withQueryParams withJsonContentType withBody withBodyParams withJsonBodyParams once times
- ADD: Mock response methods: andResponseWith andResponseWithContent andRespondWithJson
- ADD: Documentation (README.md)