brain / monkey
Mocking utility for PHP functions and WordPress plugin API
Installs: 7 532 055
Dependents: 301
Suggesters: 0
Security: 0
Stars: 305
Watchers: 7
Forks: 29
Open Issues: 8
Requires
- php: >=5.6.0
- antecedent/patchwork: ^2.1.17
- mockery/mockery: ^1.3.5 || ^1.4.4
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.1
- phpcompatibility/php-compatibility: ^9.3.0
- phpunit/phpunit: ^5.7.26 || ^6.0 || ^7.0 || >=8.0 <8.5.12 || ^8.5.14 || ^9.0
- dev-master / 2.x-dev
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- v2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- dev-version/1 / 1.x-dev
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/github_actions/codecov/codecov-action-5
- dev-feature/stub-wp-urls
- dev-refactor-qa
- dev-ci-workflow-refactoring
- dev-dev
This package is auto-updated.
Last update: 2024-12-06 13:19:53 UTC
README
Brain Monkey
Brain Monkey is a tests utility for PHP.
It provides two set of helpers:
- the first are framework-agnostic tools that allow to mock (or monkey patch) and to test behavior of any PHP function
- the second are specific to WordPress and make unit testing of WordPress extensions a no-brainer.
Requirements
- PHP 5.6+
- Composer to install
Via Composer following packages are required:
- mockery/mockery version 1 (BSD-3-Clause)
- antecedent/patchwork version 2 (MIT)
When installed for development, following packages are also required:
- phpunit/phpunit version 5.7 (BSD-3-Clause)
License
Brain Monkey is open source and released under MIT license. See LICENSE file for more info.
Question? Issues?
Brain Monkey is hosted on GitHub. Feel free to open issues there for suggestions, questions and real issues.
Who's Behind
I'm Giuseppe, I deal with PHP since 2005. For questions, rants or chat ping me on Twitter (@gmazzap) or on "The Loop" (Stack Exchange) chat.
Well, it's possible I'll ignore rants.