Iain Poulson recently shared a guide to writing unit tests for developers based on his experience at Delicious Brains. Iain’s testing framework of choice is PHPUnit. He covers what to test and how to write tests, with many helpful tips along the way.
Speaking of testing, Sammy Kaye Powers has started a series of tutorials on writing tests for PHP source code. They’re not WordPress-specific but still relevant.