Installation
Last updated
Last updated
PHP 7.4+
Composer 2.0+
Add WP_Mock as a dev-dependency using Composer:
WP_Mock needs the following dependencies to work:
PHPUnit ^9.5 (BSD 3-Clause license)
Mockery ^1.6 (BSD 3-Clause license)
Patchwork ^2.1 (MIT license)
They will be installed for you by Composer.
Next, you will need to configure PHPUnit first before enabling WP_Mock. for this step.
You will also need to to use it in your tests.