It installs WordPress test environment for PHPUnit.
Run following command.
$ curl -L https://raw.githubusercontent.com/miya0001/install-wp-test-env/master/install.sh | bash
If you have DB informations, add -s
option.
$ curl -L https://raw.githubusercontent.com/miya0001/install-wp-test-env/master/install.sh | bash -s <db-name> <db-user> <db-pass> [db-host] [wp-version]
- PHPUnit
- WP-CLI
$ wp scaffold plugin <plugin-slug>
$ cd <plugin-slug>
$ phpunit