Tag: wp-cli

  • Unit Tests for your WordPress plugin using WP CLI and PHPUnit

    Unit Tests for your WordPress plugin using WP CLI and PHPUnit

    Often when I write a blog post, part of the reason I write it is to document things that I tend to forget. This is one of those times. Requirements: PHPUnit: At the time of this writing, WordPress only supports the latest stable 7.x version of PHPUnit, and recommends installing it globally. wget https://phar.phpunit.de/phpunit-7.5.9.phar chmod…