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… Continue reading Unit Tests for your WordPress plugin using WP CLI and PHPUnit

The Answer to Life, The Universe, and Everything.

Don't Panic

Today, I turned 42. If you’re a fan of sci-fi, specifically Douglas Adam’s “Hitchhiker’s Guide to the Galaxy”, you’ll understand both the importance of this number, and the reference in the title. I do think it’s sort of apt that the number 42 was used in this context. When I hit 40 I felt good… Continue reading The Answer to Life, The Universe, and Everything.

The Clear View – Get the MOST from your freelance developer

A-Clear-View

Have a clear understanding of your project requirements to ensure you get the most out of your freelance developer The purpose of this post is to ensure that you know precisely what you need to do in order to get the most out of the freelance developer you’re about to hire. You need a complete… Continue reading The Clear View – Get the MOST from your freelance developer

Monitor MySQL command line imports and exports on Ubuntu using Pipe Viewer

MySQL Progress Monitor

If you’ve been working with PHP/MySQL based websites for any amount of time, you’ve probably heard about the MySQL command line tools for importing and exporting your database. The syntax is quite simple, for exports you run which exports the database to a file on the local machine. For imports you run which imports the… Continue reading Monitor MySQL command line imports and exports on Ubuntu using Pipe Viewer

Setting up Trusted SSL Certificates for Local Development, Using mkcert on Ubuntu 18.04 with Apache.

Computer Surgery

One of the many little annoyances that I encounter while working on client sites, is when the client has a valid SSL certificate installed on their server, but the HTTPS redirection happens in code instead of at the server level. This means that even if I export the database with the site urls replaced to… Continue reading Setting up Trusted SSL Certificates for Local Development, Using mkcert on Ubuntu 18.04 with Apache.