Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Brain-WP/BrainMonkey
Mocking utility for PHP functions and WordPress plugin API
https://github.com/Brain-WP/BrainMonkey
mockery mockey-patching php phpunit tests wordpress
Last synced: 3 months ago
JSON representation
Mocking utility for PHP functions and WordPress plugin API
- Host: GitHub
- URL: https://github.com/Brain-WP/BrainMonkey
- Owner: Brain-WP
- License: mit
- Created: 2015-03-21T15:14:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T13:53:13.000Z (3 months ago)
- Last Synced: 2024-10-29T17:33:42.912Z (3 months ago)
- Topics: mockery, mockey-patching, php, phpunit, tests, wordpress
- Language: PHP
- Homepage: https://giuseppe-mazzapica.gitbook.io/brain-monkey/
- Size: 1.16 MB
- Stars: 301
- Watchers: 7
- Forks: 29
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## Brain Monkey
[![PHP Quality Assurance](https://github.com/Brain-WP/BrainMonkey/workflows/PHP%20Quality%20Assurance/badge.svg)](https://github.com/Brain-WP/BrainMonkey/actions?query=workflow%3A%22PHP+Quality+Assurance%22)
[![codecov](https://codecov.io/gh/Brain-WP/BrainMonkey/branch/master/graph/badge.svg)](https://codecov.io/gh/Brain-WP/BrainMonkey)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](https://getcomposer.org/) to installVia Composer following packages are required:
* [mockery/mockery](https://packagist.org/packages/mockery/mockery) version 1 \(BSD-3-Clause\)
* [antecedent/patchwork](https://packagist.org/packages/antecedent/patchwork) version 2 \(MIT\)When installed for development, following packages are also required:
* [phpunit/phpunit](https://packagist.org/packages/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](https://twitter.com/gmazzap)\) or on ["The Loop"](https://chat.stackexchange.com/rooms/6/the-loop) \(Stack Exchange\) chat.
Well, it's possible I'll ignore rants.