Download the PHP package rosio/wordpress-testing-harness without Composer
On this page you can find all versions of the php package rosio/wordpress-testing-harness. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rosio/wordpress-testing-harness
More information about rosio/wordpress-testing-harness
Files in rosio/wordpress-testing-harness
Package wordpress-testing-harness
Short Description Makes testing plugins and themes with WordPress and Composer much easier
License
Informations about the package wordpress-testing-harness
WordPress Testing Harness
This library is meant to make it easier to test plugins and themes with the WordPress runtime via PHPUnit.
This is basically just a rewrite of kurtpayne/wordpress-unit-tests.
Usage:
-
Add this library, your testing library, and your WordPress deployment of choice to your plugin or themes composer.php:
You don't actually have to include WordPress, and instead have it download to the correct folder during testing (which means you can then test multiple versions of WordPress easily), but it's recommended to add one for easy local testing.
-
Configure your phpunit.xml.dist
-
Configure your phpunit's tests/bootstrap.php file:
- Write your first test!