xwp/wordpress-tests-installer

Handles installing the WordPress PHPUnit test suite with composer


Keywords
wordpress
License
MIT

Documentation

WordPress Tests Installer

License: MIT Packagist GitHub tag

A custom Composer plugin to install the WordPress Core PHPUnit test suite inside the vendor directory.

Usage

To add the WordPress Core PHPUnit test suite, add the following to your package's composer file:

"require": {
	"xwp/wordpress-tests-installer": "dev-master"
}

If you require a specific WordPress Core version, other than the latest stable release, you'll need to create a .env file in the root of your project and add the following:

WP_VERSION=4.9.4

When used with Travis CI you will need to add the environment variable to the config file or through the web UI.

License

This code is licensed under the MIT license.