Blog

Setting up Xdebug on Homestead 4.0 (PHP 7)

As Xdebug has been removed from the default Homestead box you now need to install it manually to be able to use it. Once you have vagrant ssh-ed to your Homestead VM the first thing you need to do it download the latest compatible version of Xdebug (2.4.0RC3 at the time of writing) and build…

2015 Year In Review

For pretty much five years running now I’ve taken time at the end of the year to reflect on the year that’s been, and look ahead to the year that’s to come. Last year I wanted to continue to work smarter, not harder and strike a better balance of “busyness” in my life. While I’m…

Setting up Laravel 5 for Travis CI

Continuous integration testing is awesome and if you build software with a team you really should have it up and running. Travis CI is a free (for public repos) service which connects to your GitHub repositories and automatically runs your tests whenever someone pushes to your repo (all configurable of course). This means you can…

WordPress Dependency Management

Recently I’ve been thinking a lot about WordPress and Composer (see my recent series on using WordPress with Git & Composer over on Delicious Brains) and how WordPress might implement dependency management at the core level. As more and more plugin developers start making use of Composer to manage their plugin dependencies this is going…

Expecting

It’s great to finally be able to announce that my wife and I are expecting a wee bundle of joy in March next year. It’s been a bit of a long road for us with many trials along the way. So to be here now, able to announce this great news, is truly a blessing.…

Testing defines in PHPUnit

This one tripped me up recently. Say you are wanting to test a bit of code using PHPunit that relies on a defined constant. You don’t want the define() to affect your other tests, you only want it to apply for this specific test. Something like this: class MyTest extends PHPUnit_Framework_TestCase { public function testExample()…