All notable changes to this project will be documented in this file.
- Currently in the process of writing a
WithFilefilter. As might be expected, there are lots of gotchas associated with file work. Hope to have this one out in another release some time in the next week or two. (Now being 2019-03-24) - I also plan to write and release a road map document on the docs site outlining where I want to go with the next project, tentatively called
Drive, that will work with Guzzler. The short description of it is, "Response factories based on Swagger, RAML, or API Blueprint docs".
- Fix for possibility that Guzzler macros were not loaded because the extension may not be added to a project that was pre-existing.
- 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.
- Added
Exposition::addNamespacemethod to allow users to write custom filters and override Guzzler provided filters. - Refactored
Exposition::__callmethod to search through any user-provided namespaces for filters before using the defaults provided by Guzzler.
- 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).
- Added the new
withFormFieldandwithFormmethods to theExpectationsclass. - Added the new
withJsonmethod to theExpectationsclass.
- Added the new
synchronousandasynchronousmethods to theExpectationsclass. - Updated brand slogan to "Supercharge your unit tests that use Guzzle with a mock-like syntax."
- Updated the composer.json to include license info, and pointed the main README.md to the new documentation site.
- Initial Release