Download the PHP package mrkoopie/wp_wrapper without Composer
On this page you can find all versions of the php package mrkoopie/wp_wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrkoopie/wp_wrapper
More information about mrkoopie/wp_wrapper
Files in mrkoopie/wp_wrapper
Download mrkoopie/wp_wrapper
More information about mrkoopie/wp_wrapper
Files in mrkoopie/wp_wrapper
Vendor mrkoopie
Package wp_wrapper
Short Description Wraps WordPress functions into mockable objects. Used for WP_ajaxfilter.
License MIT
Package wp_wrapper
Short Description Wraps WordPress functions into mockable objects. Used for WP_ajaxfilter.
License MIT
Please rate this library. Is it a good library?
Informations about the package wp_wrapper
WP_wrapper
By default WordPress has many non-mockable functions such as register_taxonomy(). By implementing this wrapper you can create tests that use mocks instead of a real WordPress installation.
How to install
- Go to the root directory of your theme/plugin.
-
Run the following command:
- Include the composer autoloader in your script (for a theme the functions.php).
How to use the wrapper
Simply include this in the top of your file:
Now you can run any command (including any PHP command) via the wrapper:
Do I always have to use the use feature?
Simply use this code to make the class available without the namespace. Do note that this may cause conflicts when an other class exists with the name WP_wrapper.
All versions of wp_wrapper with dependencies
PHP Build Version
Package Version
No informations.
The package mrkoopie/wp_wrapper contains the following files
Loading the files please wait ....