NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2541 most downloaded on Packagist
A mocking library to take the pain out of unit testing for WordPress
Last release 10 months ago
02 Dec 2025
Release timing varies
gaps range from 2 weeks to 3.6 years
Nearly every release is documented
notes for 12 of 12 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
12 releases · first in 2014
Explicitly mark parameter as nullable to address PHP deprecation warning by @agibson-godaddy in #262
onFilter call issues related to the withAnyArgs method by @badasswp in #259Full Changelog: 1.1.0...1.1.1
onFilter(...)->withAnyArgs() to be used multiple times on a single testsOne column per quarter.
Ignore throws in function mocks by @unfulvio in #245
expectFilter mocks by @badasswp in #254withAnyArgs method for onFilter calls. by @badasswp in #256Full Changelog: 1.0.1...1.1.0
expectFilter() mockswithAnyArgs() method for onFilter() callsesc_html())iExcpectWhenIRun() still exists but has been deprecated)Update WP_Mock::expectHookNotAdded() with new params by @unfulvio-godaddy in #234
WP_Mock::expectHookNotAdded() with new params by @unfulvio-godaddy in #234Full Changelog: 1.0.0...1.0.1
WP_Mock::expectHookNotAdded() with new paramsUpdate DeprecatedMethodListener and add more test coverage by @unfulvio-godaddy in #208
FuzzyObject. by @rneudorf-godaddy in #203Support Level section by @jeffpaul in #217Full Changelog: 0.5.0...1.0.0
AccessInaccessibleClassMembers helpers in test caseWP_Mock main classHook::safe_offset() to handle closureIsEqualHtml extends PHPUnit ConstraintDocumentation updates by @jeffpaul in #140
trunk for this repo by @jeffpaul in #155Full Changelog: 0.4.2...0.5.0
AnyInstance matcher_n() to evaluate singular or pluralWP_Mock::setUsePatchwork(true) was broken)getAnnotations error from test classFull Changelog : 0.4.1...0.4.2
Full Changelog: 0.4.1...0.4.2
This release brings us up to date with the latest release of PHPUnit.
This release brings us up to date with the latest release of PHPUnit.
Please note: As with the previously-tagged release, this is not necessarily a stable release!
Full Changelog: 0.4.0...0.4.1
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.1 .
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.1.
Full Changelog: 0.3.0...0.4.0
Deprecate wpFunction and wpPassthruFunction by @johnpbloch in #78
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.0.
$callback should be defined as a callable type by @andreasciamanna in #102Full Changelog: 0.1.1...0.3.0
Deprecate wpFunction and wpPassthruFunction by @johnpbloch in #78
This release moves to using static, tagged versions hosted on Packagist. Aside from a handful of bugfixes, it's equivalent to the dev-dev version many have been using before July 2017. Moving forward, all versions will be static and tagged.
$callback should be defined as a callable type by @andreasciamanna in #102Full Changelog: 0.1.1...0.2.0
dev-dev version many have been using before July 2017. Moving forward, all versions will be static and tagged.Better documentation and phpDocumentor output
Currently, we only have source releases on Packagist (dev-trunk and 1.0.x-dev). This will be a distributable release that will allow local caching of
Your coding agent can read these notes before it upgrades. Set up the MCP server →