> For the complete documentation index, see [llms.txt](https://testbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://testbox.ortusbooks.com/v2.x-1/introduction/introduction/whats-new-with-2.2.0.md).

# What's New With 2.2.0

TestBox 2.2.0 is a minor release with some great new functionality and tons of fixes.

## Release Notes

&#x20;Bugs

* \[[TESTBOX-48](https://ortussolutions.atlassian.net/browse/TESTBOX-48)] - Syntax error in docs for Assertion Registration
* \[[TESTBOX-49](https://ortussolutions.atlassian.net/browse/TESTBOX-49)] - Docs for Assertion CFCs inadequate, or functionality just doesn't work?
* \[[TESTBOX-120](https://ortussolutions.atlassian.net/browse/TESTBOX-120)] - MXUnit injectMethod not working if calls to methods being replaced are not "this" scoped
* \[[TESTBOX-122](https://ortussolutions.atlassian.net/browse/TESTBOX-122)] - Order of args for init function did not match the interface
* \[[TESTBOX-134](https://ortussolutions.atlassian.net/browse/TESTBOX-134)] - Mockbox: object instances as args do not always pass comparison

&#x20;New Features

* \[[TESTBOX-129](https://ortussolutions.atlassian.net/browse/TESTBOX-129)] - throwErrorCode addition to mock method generator
* \[[TESTBOX-132](https://ortussolutions.atlassian.net/browse/TESTBOX-132)] - Ability to bind data to a spec
* \[[TESTBOX-133](https://ortussolutions.atlassian.net/browse/TESTBOX-133)] - Support story-given-when-then style of representing tests
* \[[TESTBOX-136](https://ortussolutions.atlassian.net/browse/TESTBOX-136)] - MockBox no longer standalone package
* \[[TESTBOX-138](https://ortussolutions.atlassian.net/browse/TESTBOX-138)] - run method listeners so you can do callbacks on testing progress

&#x20;Improvements

* \[[TESTBOX-121](https://ortussolutions.atlassian.net/browse/TESTBOX-121)] - Ability to read assets from current directory to support lucee
* \[[TESTBOX-124](https://ortussolutions.atlassian.net/browse/TESTBOX-124)] - Support Lucee's localMode="modern"
* \[[TESTBOX-126](https://ortussolutions.atlassian.net/browse/TESTBOX-126)] - it() callback should not need to be a closure
* \[[TESTBOX-130](https://ortussolutions.atlassian.net/browse/TESTBOX-130)] - Mocking method CallBack argument receives all arguments now.
* \[[TESTBOX-135](https://ortussolutions.atlassian.net/browse/TESTBOX-135)] - Change toIncludeWithCase arguments to match toInclude


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://testbox.ortusbooks.com/v2.x-1/introduction/introduction/whats-new-with-2.2.0.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
