Changelog
[2.0.1] - 2020-12-04
- Update to test PHP 8.0
- Updated dependencies
- Moving CI to Github Actions
[2.0.0] - 2020-06-28
- Updated to support Guzzle 7
[1.6.1] - 2020-03-09
- Update to support PHPUnit 9
- Drop support for PHPUnit below 8.2
- Drop support for PHP 7.1
[1.6.0] - 2020-01-10
- Updating CI to test on PHP 7.4
- This will be the last release supporting PHP 7.1
- Added new methods:
withoutQuery,withQueryKey, andwithQueryKeys
[1.5.3] - 2019-10-03
- Moved codebase to build on
blastcloud/chassis. Chassis is the abstracted expectation engine that was originally built for Guzzler. Now, Chassis can be used as a common base for any number of testing libraries for different PHP HTTP request clients. Check out Hybrid, a port of Guzzler for Symfony's HttpClient component. - Added the ability to rename the engine in test files if desired. You no longer have to have the engine named
guzzlerif you'd rather it be named something else. See the docs here.
[1.5.2] - 2019-06-10
- Fixed the deprecated/removed
ObjectInvocationin PHPUnit 8.2 and above installations.- Thanks
@llstarscreamllfor reporting the bug.
- Thanks
[Documentation ] Road Map - 2019-06-06
- Published the official road map for the future of the project.
- Created associated Github issues for user feedback.
- Thanks
@jdreesenfor fixing incorrect syntax in theDriveproposal.
- Thanks
[1.5.1] - Released 2019-05-20
- Added the ability to add a custom error message for
withCallback. - Fixed the
json_encodeformatting for the error message onwithQuery. - Various updates to the documentation.
[1.5.0] - Released 2019-05-04
- Added the
withFilefilter. Includes several new tests and aFilehelper object. - Added the
withCallbackfilter which allows users to pass an arbitrary anonymous function to filter history items.
[1.4.2] - Released 2019-04-21
- Fix to move macros file loaded via composer. Includes test to ensure provided macros can be overridden.
[1.4.1] - Released 2019-04-04
- Fix for possibility that Guzzler macros were not loaded because the extension may not be added to a project that was pre-existing.
[1.4.0] - Released 2019-04-04
- Added the ability to add custom
macros. - Added an
extensionclass that can be added to aphpunit.xmlfile to globally load both a custom filter namespace and a macros file.
[1.3.0] - Released 2019-03-24
- Added
Expectation::addNamespacemethod to allow users to write custom filters and override Guzzler provided filters. - Refactored
Expectation::__callmethod to search through any user-provided namespaces for filters before using the defaults provided by Guzzler.
[1.2.1] - Released 2019-03-23
- Refactored filters into class based structure so that any number of filters can be added in the future.
- Added
Dispositionclass to parse multipart form post bodies. - Refactored
WithFormclass to work with both URL encoded and multipart forms. - Refactored
withJsonfunctionality to be more in-line with most other filters. Now, by default, the expectation returns true if the body contains a stringified version of the passed argument. A new$exclusiveboolean value can be passed as the second argument to return to the previous exact match nature. The new signature iswithJson(array $json, bool $exclusive = false). - Refactored
withBodyfunctionality to be more in-line with most other filters. Now, by default, the expectation returns true if the body contains the passed argument. A new$exclusiveboolean value can be passed as the second argument to return to the previous exact match nature. The new signature iswithBody(string $body, bool $exclusive = false).
[1.2.0] - Released 2019-03-16
- Added the new
withFormFieldandwithFormmethods to theExpectationsclass. - Added the new
withJsonmethod to theExpectationsclass.- Thanks
@satovedfor the idea and request.
- Thanks
[1.1.0] - Released 2019-03-03
- Added the new
synchronousandasynchronousmethods to theExpectationsclass. - Updated brand slogan to "Supercharge your unit tests that use Guzzle with a mock-like syntax."
[1.0.1] - Released 2019-03-02
- Updated the composer.json to include license info, and pointed the main README.md to the new documentation site.
[1.0.0] - Released 2019-02-28
- Initial Release