Composition package of brain/monkey and mockery/mockery with a custom test case class for PHPUnit

6.0.0 2020-10-20 15:27 UTC

This package is auto-updated.

Last update: 2022-01-16 10:55:34 UTC


Composes all relevant packages for WP components unit testing (brain/monkey and mockery) and provides test cases for PHPUnit that bootstrap Mockery and BrainMonkey.


$ composer require --dev [--prefer-dist] inpsyde/monkery-test-case 

Writing tests


use MonkeryTestCase\BrainMonkeyWpTestCase;
class MyTest extends BrainMonkeyWpTestCase {

	public function testAnything() {
		// use \Mockery and \Brain\Monkey here

Other Notes

Crafted by Inpsyde

The team at Inpsyde is engineering the Web since 2006.

Bugs, technical hints or contribute

Please give us feedback, contribute and file technical bugs on GitHub Repo.


Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog.