A Quick Hack to Writing Testable Code

Write Testable Code

I’ll be the first to admit that I am fairly inexperienced in the practical application of unit testing, or any kind of automated testing. That’s not to say I don’t understand what these things are. I was first exposed to the concept of unit tests back in 2008 and automated browser testing in around 2012.… Continue reading A Quick Hack to Writing Testable Code

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 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.