- Updated 2 August 2016
- SSH into the Pressmatic box
$ apt-get update
$ apt-get install curl php5-cli git
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
$ composer global require "phpunit/phpunit=4.8.*”
$ export PATH="$PATH:$HOME/.composer/vendor/bin"
$ wp scaffold plugin-tests acme-plugin
$ cd $(wp plugin path acme-plugin --dir)
$ bash bin/install-wp-tests.sh wordpress_test root root localhost latest
$ phpunit
Read more informaton about this gist in this post.