https://github.com/xwp/wordpress-tests-installer
Handles installing the WordPress PHPUnit test suite with composer
https://github.com/xwp/wordpress-tests-installer
Last synced: 9 months ago
JSON representation
Handles installing the WordPress PHPUnit test suite with composer
- Host: GitHub
- URL: https://github.com/xwp/wordpress-tests-installer
- Owner: xwp
- License: mit
- Created: 2018-03-16T05:02:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T21:06:02.000Z (about 5 years ago)
- Last Synced: 2025-04-12T15:07:48.968Z (9 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WordPress Tests Installer
[](https://opensource.org/licenses/MIT)
[](https://packagist.org/packages/xwp/wordpress-tests-installer)

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](https://docs.travis-ci.com/user/environment-variables/) or through the [web UI](https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings).
### License
This code is licensed under the [MIT license](https://github.com/xwp/wordpress-tests-installer/blob/master/LICENSE.md).