Learning out Loud in Milwaukee, WI

Tag: php

  • How can I use PHP Namespaces in WordPress Plugins

    PHP has long had a problem of naming collisions. Because older versions of PHP had no way of declaring methods outside the global space, developers came up with several different ways of preventing and checking for namespace collisions, none of which treated the underlying condition. These many and varied solutions begged for a unifying standard…

  • Writing Unit Tests for WordPress

    This post and others like it still get a strange amount of traffic. It’s worth noting the details here are out of date and I won’t be keeping it up. Use at your own risk! In my last post I wrote about two testing libraries for WordPress and briefly discussed the difference between integration tests…