Tags: Taluu/Behapi
Tags
Behapi v0.12.0 This release is mainly a work on contexts. It may contain a BC break or two, as some contexts were "removed", "renamed" or "changed". This release also uses beberlei's asserts instead of webmozart, because of its builders abilities for assert (Through `Assert::that()`),.it has more assertions than the other one, and it seems to be more maintained too (even though Nyholm's taken the project now). Changes (BC Breaks included) since v0.11: ----------------------------------------- - BC BREAK (soft): The `AbstractJson` context is gone and has been merged into `Json` context. - Split some assertions groups into their own traits. They'll probably be on their own context in the future. - Use `beberlei/assert` instead of `webmozart/assert` - Fix the assertion on maxCount - Merged most collection / root steps - Merged most positive / negative assertions Removal ------- - BC Break (soft): The `Behapi\Json\AbstractContext` context is gone and has been merged into `Behapi\Json\Context`
v0.11 ===== Some changes and some bc breaks, explaining why it's a new "0-major" version. It also bumps the behat version required to 3.5, as a fix on array parameters in context was released in there, which is needed for the json context Changes (BC breaks included) ---------------------------- - BC BREAK (soft) :: Removed the `ResponseTrait`, using the history directly - BC BREAK (soft) :: The `getLastResponse` in history throws an exception if no response found - BC BREAK (soft) :: The getContentTypes method in Json context has been removed. and isn't called anymore in the content type check. Inject your prefered content-types in the json context call instead. Removals -------- - The formatter section for the debug, as it was deprecated in 0.10.0.
v0.10 ===== Additions --------- Add the notion of introspection and a few introspection adapter that goes along with it. Refactors --------- Refactored and fixed how the debug works for outline scenarios (relying on example tested events rather than the outline ones) Deprecated the formatter option of the debugger. Should be gone in next release (1.0 probably ?)
v0.9.0 - Split the Http Context in two : `RequestContext` and `ResponseContext` - Made most assertion methods final (BC BREAK) - Transformed most assertion methods to snake_case (BC BREAK), because readability. - Introduced `Builder` trait - Moved the validity response json step to Json context rather than the abstract context (less mess) - Removed check for json validity on getJson.. check it with the appropriate step instead.
PreviousNext