Mocking Zend Framework’s Row and Rowset objects
If you separate your business logic from your data access logic, the last thing you want to do is make your business logic unit tests reliant on the database. This is normally not a big deal: retrieve the data, store it in an array and pass it off to the class with the business logic. Mocking the data for the unit test simply requires you to hardcode from array information in the test. However, I recently ran into a case where I wanted to pass Zend_Db_Table_Row and Zend_Db_Table_Row objects to the business logic and mocking them was not so easy.
Logging Exception Traces To syslog
If you have ever visited StackOverflow.com you may have noticed the ads for Splunk. Splunk aggregates log files together and provides a web interface to search through those logs. The setup for php is easy: set the php.ini error_log value to "syslog". The Splunk instructions show you how add a single line to your syslong.conf to have syslog send those messages over to Splunk.
Canonical Version Numbers with Git
Brandon Savage wrote a controversial blog post about why subversion is still more relevant than git. His main point was that enterprise requires canonical version numbering to track progress in the application and that git cannot do this. There was a lot of debate about this on Brandson's, but a recent comment by Morgan proved Brandon wrong.